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 Assignment
assignment(CharSequence name, Object value)
Creates a new assignment expression that assign a value to a named property.static AssignmentStatement
assignmentStatement(Assignment assignment)
Creates a new property statement that assign a value to a named property.static AssignmentStatement
assignmentStatement(CharSequence name, Object value)
Creates a new property statement that assign a value to a named property.static AttributeStatement
attributeStatement(EAttributeStatementType type, IGraphDotAttributeList attributes)
Creates a new assignment statement that assigns default properties to a graph element.static AttributeStatement
attributeStatementEdge(EdgeAttributeList attributeList)
Creates a new assignment statement that assigns default properties to an edge.static AttributeStatement
attributeStatementGraph(GraphAttributeList attributeList)
Creates a new assignment statement that assigns default properties to a graph.static AttributeStatement
attributeStatementNode(NodeAttributeList attributeList)
Creates a new assignment statement that assigns default properties to a node.static AttributeStatement
attributeStatementSubGraph(SubGraphAttributeList attributeList)
Creates a new assignment statement that assigns default properties to a sub graph.static DirectedEdgeStatement
directedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target)
Creates a new directed edge statement from the source to the target.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.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.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.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.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.static DirectedGraph
directedGraph(boolean strict, CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed graph.static DirectedGraph
directedGraph(boolean strict, CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed graph.static DirectedGraph
directedGraph(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed, non-strict graph.static DirectedGraph
directedGraph(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed, non-strict graph.static DirectedGraph
directedGraphStrict(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed, strict graph.static DirectedGraph
directedGraphStrict(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed, strict graph.static DirectedSubGraph
directedSubGraph(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed sub graph.static DirectedSubGraph
directedSubGraph(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed sub graph.static DirectedSubGraphExpression
directedSubGraphExpression(CharSequence id, IDirectedGraphDotStatement... statements)
Creates a new directed sub graph expression.static DirectedSubGraphExpression
directedSubGraphExpression(CharSequence id, Iterable<? extends IDirectedGraphDotStatement> statements)
Creates a new directed sub graph expression.static CharSequence
htmlString(CharSequence html)
Wraps an HTML string, for use as a property value.static NodeId
nodeId(CharSequence id)
Creates a new node ID without a port and compass point.static NodeId
nodeId(CharSequence id, Port port)
Creates a new node ID with an ID and a port.static NodeStatement
nodeStatement(NodeId nodeId)
Creates a new node statement.static NodeStatement
nodeStatement(NodeId nodeId, NodeAttributeList attributes)
Creates a new node statement.static Port
port(ECompassPointType compassPoint)
Creates a new port with no ID and a compass point.static Port
port(CharSequence id)
Creates a new port with an ID and no compass point.static Port
port(CharSequence id, ECompassPointType compassPoint)
Creates a new port with an ID and a compass point.static UndirectedEdgeStatement
undirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IUndirectedGraphDotStatement> target)
Creates a new undirected edge statement from the source to the target.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.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.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.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.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.static UndirectedGraph
undirectedGraph(boolean strict, CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected graph.static UndirectedGraph
undirectedGraph(boolean strict, CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected graph.static UndirectedGraph
undirectedGraph(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected, non-strict graph.static UndirectedGraph
undirectedGraph(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected, non-strict graph.static UndirectedGraph
undirectedGraphStrict(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected, strict graph.static UndirectedGraph
undirectedGraphStrict(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected, strict graph.static UndirectedSubGraph
undirectedSubGraph(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected sub graph expression.static UndirectedSubGraph
undirectedSubGraph(CharSequence id, Iterable<? extends IUndirectedGraphDotStatement> statements)
Creates a new undirected sub graph.static UndirectedSubGraphExpression
undirectedSubGraphExpression(CharSequence id, IUndirectedGraphDotStatement... statements)
Creates a new undirected sub graph.static UndirectedSubGraphExpression
undirectedSubGraphExpression(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
, orattributeStatementNode
for 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.
-
-