Graph support :Topological sort order on directed graphs NOTE: Only primitive types supported for vertices