added graph functionality
added graph functionality