Adding some graph functionality; before updating component prototype