Simplified interface for graph. Simple user just need to pass data type of node value, others can extend by subclassing graphInterface class