Skip to content

Commit

Permalink
feat: move main implementation of getGraph() on StateGraph
Browse files Browse the repository at this point in the history
work on #24
  • Loading branch information
bsorrentino committed Sep 11, 2024
1 parent 52bfbec commit 9c1b39b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public Optional<State> invoke(Map<String,Object> inputs ) throws Exception {
*/
public GraphRepresentation getGraph( GraphRepresentation.Type type, String title, boolean printConditionalEdges ) {

String content = type.generator.generate( this, title, printConditionalEdges);
String content = type.generator.generate( this.stateGraph, title, printConditionalEdges);

return new GraphRepresentation( type, content );
}
Expand All @@ -410,7 +410,7 @@ public GraphRepresentation getGraph( GraphRepresentation.Type type, String title
*/
public GraphRepresentation getGraph( GraphRepresentation.Type type, String title ) {

String content = type.generator.generate( this, title, true);
String content = type.generator.generate( this.stateGraph, title, true);

return new GraphRepresentation( type, content );
}
Expand Down

0 comments on commit 9c1b39b

Please sign in to comment.