adding another method in ASTparser #33 for dependency graphs #28