Add interfaces for graph package in java.