Click or drag to resize

BaseGraph Class

Base class for graphs
Inheritance Hierarchy

Namespace:  GraphLibrary.Graphs
Assembly:  GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
public abstract class BaseGraph

The BaseGraph type exposes the following members.

Constructors
  NameDescription
Protected methodBaseGraph
Initializes a new instance of the BaseGraph class
Top
Properties
  NameDescription
Public propertyEdges
Gets list of eges
Public propertyNodes
Gets list of nodes
Public propertyNumberOfEdges
Gets list of edges
Public propertyNumberOfNodes
Gets number of nodes
Top
Methods
  NameDescription
Public methodEdgeAdd(ListTupleInt32, Int32)
Adds multiple edges
Public methodEdgeAdd(Int32, Int32)
Adds edge between two nodes
Public methodEdgeRemove
Removes an edge between two nodes
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNeighbors
Returns list of in and out neighbors of a node
Public methodNeighborsIn
Returns list of in neighbors of a node List of in-nodes where in-node -> node
Public methodNeighborsOut
Returns list of out neighbors of a node
Public methodNodeAdd(ListInt32)
Adds multiple nodes
Public methodNodeAdd(Int32)
Adds node
Public methodNodeDegree
Number of in and out neighbors of a node
Public methodNodeDegreeIn
Number of in neighbors of a node
Public methodNodeDegreeOut
Number of out neighbors of a node
Public methodNodeDegrees
Number of in and out neighbors of all nodes
Public methodNodeDegreesIn
Number of in neighbors of all nodes
Public methodNodeDegreesOut
Number of out neighbors of all nodes
Public methodNodeRemove
Removes a node
Public methodReadEdgeList
Creates graph from Edge list file
Public methodReadPajek
Creates graph from Pajek file
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also