Basic class definitions of nodes and edges

with test code