implemented basic graph and edges if present
Fixed bugs