Click or drag to resize

INode Interface

A GrGen node

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 5.2
Syntax
C#
public interface INode : IGraphElement, IAttributeBearer

The INode type exposes the following members.

Properties
  NameDescription
Public propertyIncident
Returns an IEnumerable<IEdge> over all incident edges
Public propertyIncoming
Returns an IEnumerable<IEdge> over all incoming edges
Public propertyItem
Indexer that gives access to the attributes of the attribute bearer.
(Inherited from IAttributeBearer.)
Public propertyOutgoing
Returns an IEnumerable<IEdge> over all outgoing edges
Public propertyReplacedByElement
The element which replaced this element (Valid is false in this case) or null, if this element has not been replaced or is still a valid member of a graph.
(Inherited from IGraphElement.)
Public propertyReplacedByNode
The node which replaced this node (Valid is false in this case) or null, if this node has not been replaced or is still a valid member of a graph.
Public propertyType
The NodeType of the node
Public propertyValid
This is true, if the element is a valid graph element, i.e. it is part of a graph.
(Inherited from IGraphElement.)
Top
Methods
  NameDescription
Public methodApplyFunctionMethod
Executes the function method given by its name. Throws an exception if the method does not exists or the parameters are of wrong types.
(Inherited from IAttributeBearer.)
Public methodApplyProcedureMethod
Executes the procedure method given by its name. Throws an exception if the method does not exists or the parameters are of wrong types.
(Inherited from IAttributeBearer.)
Public methodAreAttributesEqual
Returns whether the attributes of this attribute bearer and that attribute bearer are equal. If types are unequal the result is false, otherwise the conjunction of equality comparison of the attributes.
(Inherited from IAttributeBearer.)
Public methodClone
Creates a shallow clone of this node. All attributes will be transfered to the new node. The node will not be associated to a graph, yet. So it will not have any incident edges nor any assigned variables.
Public methodCopy
Creates a deep copy of this node (i.e. internal (transient) class objects will be replicated). All attributes will be transfered to the new node. The node will not be associated to a graph, yet. So it will not have any incident edges nor any assigned variables.
Public methodGetAttribute
Returns the attribute with the given attribute name. If the attribute bearer (type) doesn't have an attribute with this name, a NullReferenceException is thrown.
(Inherited from IAttributeBearer.)
Public methodGetCompatibleIncident
Returns an IEnumerable<IEdge> over all incident edges with the same type or a subtype of the given type
Public methodGetCompatibleIncoming
Returns an IEnumerable<IEdge> over all incoming edges with the same type or a subtype of the given type
Public methodGetCompatibleOutgoing
Returns an IEnumerable<IEdge> over all outgoing edges with the same type or a subtype of the given type
Public methodGetExactIncident
Returns an IEnumerable<IEdge> over all incident edges with exactly the given type
Public methodGetExactIncoming
Returns an IEnumerable<IEdge> over all incoming edges with exactly the given type
Public methodGetExactOutgoing
Returns an IEnumerable<IEdge> over all outgoing edges with exactly the given type
Public methodGetUniqueId
Gets the unique id of the graph element. Only available if unique ids for nodes and edges were declared in the model (or implicitely switched on by parallelization or the declaration of some index).
(Inherited from IGraphElement.)
Public methodInstanceOf
Returns true, if the attribute bearer is compatible to the given type
(Inherited from IAttributeBearer.)
Public methodResetAllAttributes
Resets all attribute bearer attributes to their initial values.
(Inherited from IAttributeBearer.)
Public methodSetAttribute
Sets the attribute with the given attribute name to the given value. If the attribute bearer (type) doesn't have an attribute with this name, a NullReferenceException is thrown.
(Inherited from IAttributeBearer.)
Top
See Also