Package de.xima.fc.common.graphdot
Class GraphDotElementFactory
- java.lang.Object
-
- de.xima.fc.common.graphdot.GraphDotElementFactory
-
public final class GraphDotElementFactory extends Object
Static methods for creatinggraph dot elements.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Assignmentassignment(CharSequence name, Object value)Creates a new assignment expression that assign a value to a named property.static AssignmentStatementassignmentStatement(Assignment assignment)Creates a new property statement that assign a value to a named property.static AssignmentStatementassignmentStatement(CharSequence name, Object value)Creates a new property statement that assign a value to a named property.static AttributeStatementattributeStatement(EAttributeStatementType type, IGraphDotAttributeList attributes)Creates a new assignment statement that assigns default properties to a graph element.static AttributeStatementattributeStatementEdge(EdgeAttributeList attributeList)Creates a new assignment statement that assigns default properties to an edge.static AttributeStatementattributeStatementGraph(GraphAttributeList attributeList)Creates a new assignment statement that assigns default properties to a graph.static AttributeStatementattributeStatementNode(NodeAttributeList attributeList)Creates a new assignment statement that assigns default properties to a node.static AttributeStatementattributeStatementSubGraph(SubGraphAttributeList attributeList)Creates a new assignment statement that assigns default properties to a sub graph.static DirectedEdgeStatementdirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target)Creates a new directed edge statement from the source to the target.static DirectedEdgeStatementdirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, EdgeAttributeList attributes)Creates a new directed edge statement from the source to the target, with optional attributes for the edge.static DirectedEdgeStatementdirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>... moreNodes)Creates a new directed edge statement from the source to the target.static DirectedEdgeStatementdirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, Iterable<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes)Creates a new directed edge statement from the source to the target, with optional attributes for the edge.static DirectedEdgeStatementdirectedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> nodes)Creates a new directed edge statement from the source to the target, with no attributes for the edge.static DirectedEdgeStatementdirectedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> nodes, EdgeAttributeList attributes)Creates a new directed edge statement from the source to the target, with optional attributes for the edge.static DirectedGraphdirectedGraph(boolean strict, CharSequence id, IDirectedGraphDotStatement... statements)Creates a new directed graph.static DirectedGraphdirectedGraph(boolean strict, CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)Creates a new directed graph.static DirectedGraphdirectedGraph(CharSequence id, IDirectedGraphDotStatement... statements)Creates a new directed, non-strict graph.static DirectedGraphdirectedGraph(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)Creates a new directed, non-strict graph.static DirectedGraphdirectedGraphStrict(CharSequence id, IDirectedGraphDotStatement... statements)Creates a new directed, strict graph.static DirectedGraphdirectedGraphStrict(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)Creates a new directed, strict graph.static DirectedSubGraphdirectedSubGraph(CharSequence id, IDirectedGraphDotStatement... statements)Creates a new directed sub graph.static DirectedSubGraphdirectedSubGraph(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)Creates a new directed sub graph.static DirectedSubGraphExpressiondirectedSubGraphExpression(CharSequence id, IDirectedGraphDotStatement... statements)Creates a new directed sub graph expression.static DirectedSubGraphExpressiondirectedSubGraphExpression(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)Creates a new directed sub graph expression.static CharSequencehtmlString(CharSequence html)Wraps an HTML string, for use as a property value.static NodeIdnodeId(CharSequence id)Creates a new node ID without a port and compass point.static NodeIdnodeId(CharSequence id, Port port)Creates a new node ID with an ID and a port.static NodeStatementnodeStatement(NodeId nodeId)Creates a new node statement.static NodeStatementnodeStatement(NodeId nodeId, NodeAttributeList attributes)Creates a new node statement.static Portport(ECompassPointType compassPoint)Creates a new port with no ID and a compass point.static Portport(CharSequence id)Creates a new port with an ID and no compass point.static Portport(CharSequence id, ECompassPointType compassPoint)Creates a new port with an ID and a compass point.static UndirectedEdgeStatementundirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target)Creates a new undirected edge statement from the source to the target.static UndirectedEdgeStatementundirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, EdgeAttributeList attributes)Creates a new undirected edge statement from the source to the target, with optional attributes for the edge.static UndirectedEdgeStatementundirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>... moreNodes)Creates a new undirected edge statement from the source to the target.static UndirectedEdgeStatementundirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, Iterable<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes)Creates a new undirected edge statement from the source to the target, with optional attributes for the edge.static UndirectedEdgeStatementundirectedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> nodes)Creates a new undirected edge statement from the source to the target, with no attributes for the edge.static UndirectedEdgeStatementundirectedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> nodes, EdgeAttributeList attributes)Creates a new undirected edge statement from the source to the target, with optional attributes for the edge.static UndirectedGraphundirectedGraph(boolean strict, CharSequence id, IUndirectedGraphDotStatement... statements)Creates a new undirected graph.static UndirectedGraphundirectedGraph(boolean strict, CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)Creates a new undirected graph.static UndirectedGraphundirectedGraph(CharSequence id, IUndirectedGraphDotStatement... statements)Creates a new undirected, non-strict graph.static UndirectedGraphundirectedGraph(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)Creates a new undirected, non-strict graph.static UndirectedGraphundirectedGraphStrict(CharSequence id, IUndirectedGraphDotStatement... statements)Creates a new undirected, strict graph.static UndirectedGraphundirectedGraphStrict(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)Creates a new undirected, strict graph.static UndirectedSubGraphundirectedSubGraph(CharSequence id, IUndirectedGraphDotStatement... statements)Creates a new undirected sub graph expression.static UndirectedSubGraphundirectedSubGraph(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)Creates a new undirected sub graph.static UndirectedSubGraphExpressionundirectedSubGraphExpression(CharSequence id, IUndirectedGraphDotStatement... statements)Creates a new undirected sub graph.static UndirectedSubGraphExpressionundirectedSubGraphExpression(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)Creates a new undirected sub graph expression.
-
-
-
Method Detail
-
assignment
public static Assignment assignment(CharSequence name, Object value)
Creates a new assignment expression that assign a value to a named property.- Parameters:
name- Name of the property.value- Value of the property.- Returns:
- A new assignment expression.
-
assignmentStatement
public static AssignmentStatement assignmentStatement(Assignment assignment)
Creates a new property statement that assign a value to a named property.- Parameters:
assignment- Assignment to perform.- Returns:
- A new property statement.
-
assignmentStatement
public static AssignmentStatement assignmentStatement(CharSequence name, Object value)
Creates a new property statement that assign a value to a named property.- Parameters:
name- Name of the property.value- Value of the property.- Returns:
- A new property statement.
- See Also:
, which can be used for HTML values.
-
attributeStatement
public static AttributeStatement attributeStatement(EAttributeStatementType type, IGraphDotAttributeList attributes)
Creates a new assignment statement that assigns default properties to a graph element. Prefer one ofattributeStatementEdge,attributeStatementGraph, orattributeStatementNodefor type safety.- Parameters:
type- Type of the graph element.attributes- Attributes to set.- Returns:
- A new assignment statement.
- See Also:
, which can be used for HTML values.
-
attributeStatementEdge
public static AttributeStatement attributeStatementEdge(EdgeAttributeList attributeList)
Creates a new assignment statement that assigns default properties to an edge.- Parameters:
attributeList- Attributes to set.- Returns:
- A new assignment statement.
- See Also:
, which can be used for HTML values.
-
attributeStatementGraph
public static AttributeStatement attributeStatementGraph(GraphAttributeList attributeList)
Creates a new assignment statement that assigns default properties to a graph.- Parameters:
attributeList- Attributes to set.- Returns:
- A new assignment statement.
- See Also:
, which can be used for HTML values.
-
attributeStatementNode
public static AttributeStatement attributeStatementNode(NodeAttributeList attributeList)
Creates a new assignment statement that assigns default properties to a node.- Parameters:
attributeList- Attributes to set.- Returns:
- A new assignment statement.
- See Also:
, which can be used for HTML values.
-
attributeStatementSubGraph
public static AttributeStatement attributeStatementSubGraph(SubGraphAttributeList attributeList)
Creates a new assignment statement that assigns default properties to a sub graph.- Parameters:
attributeList- Attributes to set.- Returns:
- A new assignment statement.
- See Also:
, which can be used for HTML values.
-
directedEdgeStatement
public static DirectedEdgeStatement directedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target)
Creates a new directed edge statement from the source to the target.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.- Returns:
- A new directed edge statement.
-
directedEdgeStatement
public static DirectedEdgeStatement directedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, EdgeAttributeList attributes)
Creates a new directed edge statement from the source to the target, with optional attributes for the edge.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.attributes- Optional attributes for the edge(s).- Returns:
- A new directed edge statement.
-
directedEdgeStatement
@SafeVarargs public static DirectedEdgeStatement directedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>... moreNodes)
Creates a new directed edge statement from the source to the target.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.moreNodes- More nodes to draw edges to.- Returns:
- A new directed edge statement.
-
directedEdgeStatement
public static DirectedEdgeStatement directedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, Iterable<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes)
Creates a new directed edge statement from the source to the target, with optional attributes for the edge.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.moreNodes- More nodes to draw edges to.attributes- Optional attributes for the edge(s).- Returns:
- A new directed edge statement.
-
directedEdgeStatement
public static DirectedEdgeStatement directedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> nodes)
Creates a new directed edge statement from the source to the target, with no attributes for the edge.- Parameters:
nodes- Nodes between which to draw edges. Must contain at least 2 items!- Returns:
- A new directed edge statement.
-
directedEdgeStatement
public static DirectedEdgeStatement directedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> nodes, EdgeAttributeList attributes)
Creates a new directed edge statement from the source to the target, with optional attributes for the edge.- Parameters:
nodes- Nodes between which to draw edges. Must contain at least 2 items!attributes- Optional attributes for the edge(s).- Returns:
- A new directed edge statement.
-
directedGraph
public static DirectedGraph directedGraph(boolean strict, CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed graph.- Parameters:
strict- Whether the graph should be strict.id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new directed graph.
-
directedGraph
public static DirectedGraph directedGraph(boolean strict, CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed graph.- Parameters:
strict- Whether the graph should be strict.id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new directed graph.
-
directedGraph
public static DirectedGraph directedGraph(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed, non-strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new directed, non-strict graph.
-
directedGraph
public static DirectedGraph directedGraph(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed, non-strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new directed, non-strict graph.
-
directedGraphStrict
public static DirectedGraph directedGraphStrict(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed, strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new directed, strict graph.
-
directedGraphStrict
public static DirectedGraph directedGraphStrict(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed, strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new directed, strict graph.
-
directedSubGraph
public static DirectedSubGraph directedSubGraph(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed sub graph.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new directed sub graph.
-
directedSubGraph
public static DirectedSubGraph directedSubGraph(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed sub graph.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new directed sub graph.
-
directedSubGraphExpression
public static DirectedSubGraphExpression directedSubGraphExpression(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed sub graph expression.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new directed sub graph.
-
directedSubGraphExpression
public static DirectedSubGraphExpression directedSubGraphExpression(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed sub graph expression.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new directed sub graph.
-
htmlString
public static CharSequence htmlString(CharSequence html)
Wraps an HTML string, for use as a property value.- Parameters:
html- HTML string to wrap.- Returns:
- The wrapped HTML string.
-
nodeId
public static NodeId nodeId(CharSequence id)
Creates a new node ID without a port and compass point.- Parameters:
id- ID of the node.- Returns:
- A new node ID.
-
nodeId
public static NodeId nodeId(CharSequence id, Port port)
Creates a new node ID with an ID and a port.- Parameters:
id- ID of the node.port- Port of the node.- Returns:
- A new node ID.
-
nodeStatement
public static NodeStatement nodeStatement(NodeId nodeId)
Creates a new node statement.- Parameters:
nodeId- ID of the node, with an optional port and compass point.- Returns:
- A new node statement.
-
nodeStatement
public static NodeStatement nodeStatement(NodeId nodeId, NodeAttributeList attributes)
Creates a new node statement.- Parameters:
nodeId- ID of the node, with an optional port and compass point.attributes- Attributes for the node.- Returns:
- A new node statement.
-
port
public static Port port(CharSequence id)
Creates a new port with an ID and no compass point.- Parameters:
id- ID of the port.- Returns:
- A new port.
-
port
public static Port port(CharSequence id, ECompassPointType compassPoint)
Creates a new port with an ID and a compass point.- Parameters:
id- ID of the port.compassPoint- Compass point of the port.- Returns:
- A new port.
-
port
public static Port port(ECompassPointType compassPoint)
Creates a new port with no ID and a compass point.- Parameters:
compassPoint- Compass point of the port.- Returns:
- A new port.
-
undirectedEdgeStatement
public static UndirectedEdgeStatement undirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target)
Creates a new undirected edge statement from the source to the target.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.- Returns:
- A new undirected edge statement.
-
undirectedEdgeStatement
public static UndirectedEdgeStatement undirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, EdgeAttributeList attributes)
Creates a new undirected edge statement from the source to the target, with optional attributes for the edge.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.attributes- Optional attributes for the edge(s).- Returns:
- A new undirected edge statement.
-
undirectedEdgeStatement
@SafeVarargs public static UndirectedEdgeStatement undirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>... moreNodes)
Creates a new undirected edge statement from the source to the target.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.moreNodes- More nodes to draw edges to.- Returns:
- A new undirected edge statement.
-
undirectedEdgeStatement
public static UndirectedEdgeStatement undirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target, Iterable<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes)
Creates a new undirected edge statement from the source to the target, with optional attributes for the edge.- Parameters:
source- Source node, i.e. the start point of the edge.target- Target node, i.e. the end point of the edge.moreNodes- More nodes to draw edges to.attributes- Optional attributes for the edge(s).- Returns:
- A new undirected edge statement.
-
undirectedEdgeStatement
public static UndirectedEdgeStatement undirectedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> nodes)
Creates a new undirected edge statement from the source to the target, with no attributes for the edge.- Parameters:
nodes- Nodes between which to draw edges. Must contain at least 2 items!- Returns:
- A new undirected edge statement.
-
undirectedEdgeStatement
public static UndirectedEdgeStatement undirectedEdgeStatement(Iterable<? extends IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement>> nodes, EdgeAttributeList attributes)
Creates a new undirected edge statement from the source to the target, with optional attributes for the edge.- Parameters:
nodes- Nodes between which to draw edges. Must contain at least 2 items!attributes- Optional attributes for the edge(s).- Returns:
- A new undirected edge statement.
-
undirectedGraph
public static UndirectedGraph undirectedGraph(boolean strict, CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected graph.- Parameters:
strict- Whether the graph should be strict.id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new undirected graph.
-
undirectedGraph
public static UndirectedGraph undirectedGraph(boolean strict, CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected graph.- Parameters:
strict- Whether the graph should be strict.id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new undirected graph.
-
undirectedGraph
public static UndirectedGraph undirectedGraph(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected, non-strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new undirected, non-strict graph.
-
undirectedGraph
public static UndirectedGraph undirectedGraph(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected, non-strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new undirected, non-strict graph.
-
undirectedGraphStrict
public static UndirectedGraph undirectedGraphStrict(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected, strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new undirected, strict graph.
-
undirectedGraphStrict
public static UndirectedGraph undirectedGraphStrict(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected, strict graph.- Parameters:
id- Optional ID of the graph.statements- Optional statements in the graph.- Returns:
- A new undirected, strict graph.
-
undirectedSubGraph
public static UndirectedSubGraph undirectedSubGraph(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected sub graph.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new undirected sub graph.
-
undirectedSubGraph
public static UndirectedSubGraph undirectedSubGraph(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected sub graph expression.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new undirected sub graph.
-
undirectedSubGraphExpression
public static UndirectedSubGraphExpression undirectedSubGraphExpression(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected sub graph expression.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new undirected sub graph.
-
undirectedSubGraphExpression
public static UndirectedSubGraphExpression undirectedSubGraphExpression(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected sub graph.- Parameters:
id- Optional ID of the sub graph.statements- Optional statement of the sub graph.- Returns:
- A new undirected sub graph.
-
-