Added generic Graph component for JavaFX