Weighted (directed) Graph for Routing

Hey all,
I’m new to osm and so far it pleases me. I want to implement some routingalgorithms and therefore I need a graph with distances and weights. I’ve searched the web but nothing really found. Is there any tool or HowTo/Tutorial to build such a graph I need from the .osm-files?
Thanks for your help and greetings from Bremen / Germany!

Welcome to the OSM community!

In general, have a look at the OSM wiki at http://wiki.openstreetmap.org/wiki/Routing

Ther you can find online and offline routers. Study all of them, many are opensource.

There is also an OSM mailing list about Routing, see http://wiki.openstreetmap.org/wiki/Mailing_lists

Further on, when you are from my old “Heimat” Bremen, re-ask in the high frequent German sub forum here when there comes no sufficient solution here.

And did you know that there is also a monthly mapper meeting at Bremen? http://wiki.openstreetmap.org/wiki/Bremen/Mappertreffen