new base class for graph
Directed graph