The IGraph type exposes the following members.

Methods

  NameDescription
Public methodAddBend
Adds a bend at the given index to the given edge using the coordinates provided. The added instance will be returned.
Public methodAddLabel
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
Public methodAddPort
Add a port to the given port owner using the location model parameter, style and tag. The locationModelParameter determines the location of the port.
Public methodContains
Determines whether this graph contains the specified item.
Public methodCreateEdge(INode, INode, IEdgeStyle, Object)
Convenience method that creates and returns an edge that connects to the given node instances using the given style instance.
Public methodCreateEdge(IPort, IPort, IEdgeStyle, Object)
Creates and returns an edge that connects to the given port instances.
Public methodCreateNode
Creates and returns a node using the specified values for the initial geometry, style, and Tag.
Public methodEdgesAt(IPort, AdjacencyTypes)
Returns an IEnumerable<(Of <(<'T>)>)> for all edges that are adjacent to the given port as a SourcePort or TargetPort.
Public methodEdgesAt(IPortOwner, AdjacencyTypes)
Returns an IListEnumerable<(Of <(<'T>)>)> for all edges that have the given port owner as their target port's or source port'sOwner depending on the AdjacencyTypes
Public methodInvalidateDisplays
Causes the DisplaysInvalidated event to be triggered.
Public methodLookup
Returns an instance that implements the given type or null.
(Inherited from ILookup.)
Public methodRemove(IBend)
Removes the given bend instance from its edge.
Public methodRemove(IEdge)
Removes the given edge instance from this graph.
Public methodRemove(ILabel)
Removes the given label from its owner. This will trigger the corresponding event.
Public methodRemove(INode)
Removes the given node instance from this graph.
Public methodRemove(IPort)
Removes a port from its owner.
Public methodSetBounds
Sets the bounds of the given node to the new values.
Public methodSetLabelModelParameter
Sets the label model parameter for the given label.
Public methodSetLabelText
Sets the label text of the given label.
Public methodSetLocation
Modifies the location of the given bend.
Public methodSetLocationModelParameter
Sets a new IPortLocationModelParameter for the given port.
Public methodSetPorts
Sets the ports of the given edge to the new values.
Public methodSetPreferredSize
Sets the preferred size of the label.
Public methodSetStyle(IEdge, IEdgeStyle)
Assigns the given style instance by reference to the edge. Style instances can be shared.
Public methodSetStyle(ILabel, ILabelStyle)
Assigns the given style instance by reference to the label. Style instances can be shared.
Public methodSetStyle(INode, INodeStyle)
Assigns the given style instance by reference to the node. Style instances can be shared.
Public methodSetStyle(IPort, IPortStyle)
Assigns the given style instance by reference to the port. Style instances can be shared.

Extension Methods

  NameDescription
Public Extension MethodAddLabel(ILabeledItem, String)Overloaded.
Add a label to the given item using the text as the initial label text.
(Defined by GraphExtensions.)
Public Extension MethodAddLabel(ILabeledItem, String, Object)Overloaded.
Add a label to the given item using the text as the initial label text and a given tag.
(Defined by GraphExtensions.)
Public Extension MethodAddLabel(ILabeledItem, ILabelModelParameter, String)Overloaded.
Add a label to the given item using the text as the initial label text as well as label model parameter.
(Defined by GraphExtensions.)
Public Extension MethodAddLabel(ILabeledItem, ILabelModelParameter, ILabelStyle, String)Overloaded.
Add a label to the given item using the text as the initial label text as well as label model parameter and style.
(Defined by GraphExtensions.)
Public Extension MethodAddLabel(ILabeledItem, ILabelModelParameter, ILabelStyle, String, SizeD)Overloaded.
Add a label to the given item using the text as the initial label text as well as label model parameter, preferred size, and style.
(Defined by GraphExtensions.)
Public Extension MethodAddLabel(ILabeledItem, ILabelModelParameter, ILabelStyle, String, Object)Overloaded.
Add a label to the given item using the text as the initial label text as well as label model parameter and style.
(Defined by GraphExtensions.)
Public Extension MethodAddPort(IPortOwner)Overloaded.
Adds a new port to the graph at the port using the default location model parameter for the owner.
(Defined by GraphExtensions.)
Public Extension MethodAddPort(IPortOwner, PointD)Overloaded.
Adds a new port to the graph at the port using the given location.
(Defined by GraphExtensions.)
Public Extension MethodAddPort(IPortOwner, IPortLocationModelParameter)Overloaded.
Adds a new port to the graph at the port owner using the given location parameter.
(Defined by GraphExtensions.)
Public Extension MethodAddPort(IPortOwner, PointD, IPortStyle)Overloaded.
Add a port to the given port owner using the absolute coordinates as the new initial position of the port anchor.
(Defined by GraphExtensions.)
Public Extension MethodAddPort(IPortOwner, IPortLocationModelParameter, IPortStyle)Overloaded.
Adds a new port to the graph using a nullNothingnullptra null reference (Nothing in Visual Basic)Tag
(Defined by GraphExtensions.)
Public Extension MethodAddRelativePort
Adds a new port to the graph at the node using a location that is relative to the center of the node.
(Defined by GraphExtensions.)
Public Extension MethodAddUndoUnit
Convenience method that uses the IUndoSupport from the IGraph's ILookup to add a unit.
(Defined by GraphExtensions.)
Public Extension MethodAdjustPreferredSize
Adjusts the PreferredSize property of a label to fit the suggested size of its ILabelStyleRenderer.
(Defined by GraphExtensions.)
Public Extension MethodAppendBend
Appends a new bend to the list of bends at the given edge.
(Defined by GraphExtensions.)
Public Extension MethodAppendBends
Appends bends to the given edge using the provided locations.
(Defined by GraphExtensions.)
Public Extension MethodApplyLayout(ILayouter)Overloaded.
Convenience method that runs a layouter on a graph using ApplyLayout(IGraph, ILayouter).
(Defined by LayoutExtensions.)
Public Extension MethodApplyLayout(ILayouter, TimeSpan, GraphControl)Overloaded.
Convenience method that runs a layouter on a graph and animates the transition to the new layout in a graph control that displays the graph.
(Defined by LayoutExtensions.)
Public Extension MethodApplyLayout(ILayouter, TimeSpan, GraphControl, EventHandler)Overloaded.
Convenience method that runs a layouter on a graph and animates the transition to the new layout in a graph control that displays the graph. An event is called once the animation has finished.
(Defined by LayoutExtensions.)
Public Extension MethodBeginEdit(String, String)Overloaded.
Convenience method that uses the IUndoSupport from the IGraph's ILookup to begin an edit.
(Defined by GraphExtensions.)
Public Extension MethodBeginEdit<(Of <<'(T>)>>)(String, String, IEnumerable<(Of <<'(T>)>>))Overloaded.
Convenience method that uses the IUndoSupport from the IGraph's ILookup to begin an edit.
(Defined by GraphExtensions.)
Public Extension MethodCalculatePreferredSize(ILabeledItem, String)Overloaded.
Calculates the preferred size of a label with the given properties.
(Defined by GraphExtensions.)
Public Extension MethodCalculatePreferredSize(ILabeledItem, ILabelStyle, ILabelModelParameter, String)Overloaded.
Calculates the preferred size of a label with the given properties.
(Defined by GraphExtensions.)
Public Extension MethodCalculatePreferredSize(ILabeledItem, ILabelStyle, ILabelModelParameter, String, Object)Overloaded.
Calculates the preferred size of a label with the given properties.
(Defined by GraphExtensions.)
Public Extension MethodClear
Clears the graph instance, removing all entities in proper order.
(Defined by GraphExtensions.)
Public Extension MethodClearBends
Removes all bends from the given edge.
(Defined by GraphExtensions.)
Public Extension MethodCreateEdge(INode, INode)Overloaded.
Convenience method that creates and returns an edge that connects to the given node instances.
(Defined by GraphExtensions.)
Public Extension MethodCreateEdge(IPort, IPort)Overloaded.
Creates and returns an edge that connects to the given port instances.
(Defined by GraphExtensions.)
Public Extension MethodCreateEdge(INode, INode, IEdgeStyle)Overloaded.
Convenience method that creates and returns an edge that connects to the given node instances.
(Defined by GraphExtensions.)
Public Extension MethodCreateEdge(IPort, IPort, IEdgeStyle)Overloaded.
Creates and returns an edge that connects to the given port instances.
(Defined by GraphExtensions.)
Public Extension MethodCreateEdgeStyle
Convenience method that delegates to the GetStyleInstance()()()() method of the IGraph's EdgeDefaults.
(Defined by GraphExtensions.)
Public Extension MethodCreateIncrementalLayerConstraintFactory
Creates and registers an incremental layerer constraint factory for a graph.
(Defined by LayoutExtensions.)
Public Extension MethodCreateLabelModelParameter
Creates the label model parameter for a given ILabeledItem.
(Defined by GraphExtensions.)
Public Extension MethodCreateLabelStyle
Convenience method that delegates to the GetStyleInstance()()()() method of the GetLabelDefaults(IGraph, ILabeledItem) for the given labeled item.
(Defined by GraphExtensions.)
Public Extension MethodCreateLayerConstraintFactory
Creates and registers a layerer constraint factory for a graph.
(Defined by LayoutExtensions.)
Public Extension MethodCreateLocationModelParameter(IPortOwner)Overloaded.
Uses the port defaults for the owner to obtain the location model parameter.
(Defined by GraphExtensions.)
Public Extension MethodCreateLocationModelParameter(IPortOwner, PointD)Overloaded.
Creates a location model parameter for a newly created IPort at the owner that matches the location.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode()()()()Overloaded.
Creates and returns a node using default values for the geometry and style.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode(PointD)Overloaded.
Creates and returns a node using default values for the style and the specified initial center location.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode(RectD)Overloaded.
Creates and returns a node using default values for the style and the specified initial geometry.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode(PointD, Object)Overloaded.
Creates and returns a node using default values for the style and the specified initial center location, as well as the tag.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode(PointD, INodeStyle)Overloaded.
Creates and returns a node using the specified initial center location and style.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode(RectD, INodeStyle)Overloaded.
Creates and returns a node using the specified initial style and geometry.
(Defined by GraphExtensions.)
Public Extension MethodCreateNode(RectD, Object)Overloaded.
Creates and returns a node using default values for the style and the specified initial geometry, as well as the provided tag.
(Defined by GraphExtensions.)
Public Extension MethodCreateNodeStyle
Convenience method that delegates to the GetStyleInstance()()()() method of the IGraph's NodeDefaults.
(Defined by GraphExtensions.)
Public Extension MethodCreatePortStyle
Convenience method that delegates to the GetStyleInstance(IPortOwner) method of the GetPortDefaults(IGraph, IPortOwner) for the given owner.
(Defined by GraphExtensions.)
Public Extension MethodCreateSequenceConstraintFactory
Creates and registers a sequencer constraint factory for a graph.
(Defined by LayoutExtensions.)
Public Extension MethodDegree(IPort)Overloaded.
Calculates the number of edges at the given IPort for this graph.
(Defined by GraphExtensions.)
Public Extension MethodDegree(IPortOwner)Overloaded.
Calculates the number of edges at the given IPortOwner for this graph.
(Defined by GraphExtensions.)
Public Extension MethodEdgesAt(IPort)Overloaded.
Convenience method that yields all adjacent edges at the given owner.
(Defined by GraphExtensions.)
Public Extension MethodEdgesAt(IPortOwner)Overloaded.
Convenience method that yields all adjacent edges at the given owner.
(Defined by GraphExtensions.)
Public Extension MethodGet<(Of <<'(T>)>>)
Typesafe convenience method for the Lookup(Type) method.
(Defined by LookupExtensions.)
Public Extension MethodGetDecorator
Gets a GraphDecorator instance for use with the given graph.
(Defined by GraphDecoratorExtensions.)
Public Extension MethodGetDefaultNodeBounds
Gets the default node bounds for newly created nodes in the graph.
(Defined by GraphExtensions.)
Public Extension MethodGetEdge(IPort, IPort)Overloaded.
Finds an edge that connects from and to in the given graph.
(Defined by GraphExtensions.)
Public Extension MethodGetEdge(IPortOwner, IPortOwner)Overloaded.
Finds an edge that connects from and to in the given graph.
(Defined by GraphExtensions.)
Public Extension MethodGetFoldedGraph
Gets the folded graph instance associated with this IGraph or nullNothingnullptra null reference (Nothing in Visual Basic) if none is associated with it.
(Defined by GraphExtensions.)
Public Extension MethodGetGroupedGraph
Gets the grouped graph instance associated with this IGraph or nullNothingnullptra null reference (Nothing in Visual Basic) if none is associated with it.
(Defined by GraphExtensions.)
Public Extension MethodGetLabelDefaults
Gets the label defaults for a given ILabeledItem in the context of the graph.
(Defined by GraphExtensions.)
Public Extension MethodGetPortDefaults
Gets the port defaults for a given IPortOwner in the context of the graph.
(Defined by GraphExtensions.)
Public Extension MethodInDegree(IPort)Overloaded.
Calculates the number of incoming edges at the given IPort for this graph.
(Defined by GraphExtensions.)
Public Extension MethodInDegree(IPortOwner)Overloaded.
Calculates the number of incoming edges at the given IPortOwner for this graph.
(Defined by GraphExtensions.)
Public Extension MethodInEdgesAt(IPort)Overloaded.
Convenience method that yields the incoming edges at the given owner.
(Defined by GraphExtensions.)
Public Extension MethodInEdgesAt(IPortOwner)Overloaded.
Convenience method that yields the incoming edges at the given owner.
(Defined by GraphExtensions.)
Public Extension MethodNeighbors<(Of <<'(T>)>>)
Yields the neighbors of a given portOwner.
(Defined by GraphExtensions.)
Public Extension MethodOutDegree(IPort)Overloaded.
Calculates the number of outgoing edges at the given IPort for this graph.
(Defined by GraphExtensions.)
Public Extension MethodOutDegree(IPortOwner)Overloaded.
Calculates the number of outgoing edges at the given IPortOwner for this graph.
(Defined by GraphExtensions.)
Public Extension MethodOutEdgesAt(IPort)Overloaded.
Convenience method that yields the outgoing edges at the given owner.
(Defined by GraphExtensions.)
Public Extension MethodOutEdgesAt(IPortOwner)Overloaded.
Convenience method that yields the outgoing edges at the given owner.
(Defined by GraphExtensions.)
Public Extension MethodPredecessors<(Of <<'(T>)>>)
Yields the predecessors of a given portOwner.
(Defined by GraphExtensions.)
Public Extension MethodRemove(ILabeledItem)Overloaded.
Convenience method that removes a ILabeledItem from the graph.
(Defined by GraphExtensions.)
Public Extension MethodRemove(IPortOwner)Overloaded.
Convenience method that removes a IPortOwner from the graph.
(Defined by GraphExtensions.)
Public Extension MethodReverse (Defined by GraphExtensions.)
Public Extension MethodSafeGet<(Of <<'(T>)>>)
Typesafe convenience method for the Lookup(Type) method.
(Defined by LookupExtensions.)
Public Extension MethodSetCenter
Sets the center of a node to the given world coordinates.
(Defined by GraphExtensions.)
Public Extension MethodSetLocation
Convenience method that tries to set the absolute coordinates of the given port to the given values.
(Defined by GraphExtensions.)
Public Extension MethodSetRelativeLocation
Tries to set the location of the port relative to its owner if the owner is a node.
(Defined by GraphExtensions.)
Public Extension MethodSuccessors<(Of <<'(T>)>>)
Yields the successors of a given portOwner.
(Defined by GraphExtensions.)

Properties

  NameDescription
Public propertyBends
A collection view of the bends contained in this graph.
Public propertyCollectionModel
A collection view that combines all nodes, edges, labels, ports, and bends of this graph.
Public propertyEdgeDefaults
Gets or sets the defaults for normal edges.
Public propertyEdgeLabels
A collection view of the edge labels contained in this graph.
Public propertyEdges
A collection view of the edges contained in this graph.
Public propertyMapperRegistry
Gets the mapper registry that is associated with this graph instance.
Public propertyNodeDefaults
Gets or sets the defaults for normal nodes.
Public propertyNodeLabels
A collection view of the node labels contained in this graph.
Public propertyNodes
A collection view of the nodes contained in this graph.
Public propertyPorts
A collection view of the ports contained in this graph.

Events

  NameDescription
Public eventBendAdded
Event that is triggered if a bend has been added to an edge in this graph.
Public eventBendChanged
Event that is triggered if a bend has been changed.
Public eventBendRemoved
Event that is triggered if a bend has been removed from an edge in this graph. This event will be triggered, too, if an edge has been removed from the graph, for each of the bends that belonged to the edge.
Public eventDisplaysInvalidated
Event that is triggered if the graph has changed visually and the display should be updated to reflect the changes.
Public eventEdgeChanged
Event that is triggered if an edge has been changed, e.g. if its style has been replaced.
Public eventEdgeCreated
Event that is triggered if an edge has been created.
Public eventEdgeRemoved
Event that is triggered if an edge has been removed. This event will be triggered, too, prior to a node removal.
Public eventLabelAdded
Event that is triggered if a label has been added to this graph instance.
Public eventLabelChanged
Event that is triggered if a label has been changed, e.g. if its style has been replaced.
Public eventLabelRemoved
Event that is triggered if a label has been removed from this graph instance. This event will also be triggered, prior to the removal of the owner of the label.
Public eventNodeChanged
Event that is triggered if a node has been changed, e.g. if its style has been replaced.
Public eventNodeCreated
Event that is triggered if a node has been created.
Public eventNodeRemoved
Event that is triggered if a node has been removed.
Public eventPortAdded
Event that is triggered if a port has been added to this graph instance.
Public eventPortChanged
Event that is triggered if a port has been changed, e.g. if its style has been replaced.
Public eventPortRemoved
Event that is triggered if a port has been removed from its owner. This event will also be triggered prior to the removal of the corresponding owner of the port.

See Also