Interface GraphElementFactory


  • public interface GraphElementFactory
    Interface to be implemented by classes creating graph elements (nodes and links).
    Author:
    Christophe Labouisse
    • Method Detail

      • createNode

        Node createNode​(String nodeName)
        Creates a new Node.
        Parameters:
        nodeName - name of the newly created node.
        Returns:
        a new node.
      • createLink

        Link createLink​(String linkName,
                        Node startNode,
                        Node endNode)
        Creates a new link between 2 nodes.
        Parameters:
        linkName - the new link name, can be null.
        startNode - start node
        endNode - end node
        Returns:
        a new link.