# Class AgentGraphGenerator

java.lang.Object
com.google.adk.web.AgentGraphGenerator

public class AgentGraphGenerator extends Object
Utility class to generate Graphviz DOT representations of Agent structures.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AgentGraphGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Optional<String>`
  `getAgentGraphDotSource(BaseAgent rootAgent, List<List<String>> highlightPairs)`
  Generates the DOT source string for the agent graph.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AgentGraphGenerator

    public AgentGraphGenerator()

- ## Method Details

  - ### getAgentGraphDotSource

    public static Optional<String> getAgentGraphDotSource(BaseAgent rootAgent, List<List<String>> highlightPairs)
    Generates the DOT source string for the agent graph.
    Parameters:
      `rootAgent` - The root agent of the structure.
      `highlightPairs` - A list where each inner list contains two strings (fromNode, toNode) representing an edge to highlight. Order matters for direction.
    Returns:
      The DOT source string, or null if graph generation fails.