simple adjacency list implementation
Materialized path added