first step in organizing moirai functions and validating graph nodes and edges