simple graph representation and gui displa