Directed graph API added