added first basic graph in Java