Graph Model for Open Street Map Data

I am working on Open Street Map (OSM) data, I want to import OSM data to DGraph database so I can write A* algorithm using DGraph, to find the optimal routes.
But I am new to the Graph Database, and I have no idea how to model OSM data as a graph.
Do the edges of a graph have their own properties like a road that connecting 2 intersection has its own name, type of road and length?

1 Like

Edge Concept

An Edge can have specific attributes using Facets. But Facets are not first-class citizens.

We have a good tour for you

Also we have Geolocation

@MichelDiz, Thanks <3<3<3<3