Simple Graph class for education base graph algorithms