C# Class Smrf.NodeXL.Adapters.SimpleGraphAdapter

Converts a graph to and from a simple two-name pair format.
The two-name format consists of one line of text per edge, where each line specifies the names of the vertices connected by the edge. This is the format of each line: Vertex1Name{tab}Vertex2Name

The delimiter is a tab, and the vertex names can consist of any Unicode characters, including leading, trailing, and embedded spaces.

This adapter can be used with directed graphs only.

Inheritance: GraphAdapterBase, IGraphAdapter
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
StreamEncoding System.Text.Encoding

Méthodes publiques

Méthode Description
AssertValid ( ) : void
SimpleGraphAdapter ( ) : System

Initializes a new instance of the SimpleGraphAdapter class.

Méthodes protégées

Méthode Description
GetSupportedDirectedness ( System.Boolean &supportsDirected, System.Boolean &supportsUndirected, System.Boolean &supportsMixed ) : void
LoadGraphCore ( Stream stream ) : IGraph
SaveGraphCore ( IGraph graph, Stream stream ) : void
VertexNameIsValid ( String sVertexName ) : System.Boolean
VertexNameToVertex ( String sVertexName, IVertexCollection oVertices, IVertex>.Dictionary oDictionary ) : IVertex
VertexToVertexName ( IVertex oVertex ) : String

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

GetSupportedDirectedness() protected méthode

protected GetSupportedDirectedness ( System.Boolean &supportsDirected, System.Boolean &supportsUndirected, System.Boolean &supportsMixed ) : void
supportsDirected System.Boolean
supportsUndirected System.Boolean
supportsMixed System.Boolean
Résultat void

LoadGraphCore() protected méthode

protected LoadGraphCore ( Stream stream ) : IGraph
stream Stream
Résultat IGraph

SaveGraphCore() protected méthode

protected SaveGraphCore ( IGraph graph, Stream stream ) : void
graph IGraph
stream Stream
Résultat void

SimpleGraphAdapter() public méthode

Initializes a new instance of the SimpleGraphAdapter class.
public SimpleGraphAdapter ( ) : System
Résultat System

VertexNameIsValid() protected méthode

protected VertexNameIsValid ( String sVertexName ) : System.Boolean
sVertexName String
Résultat System.Boolean

VertexNameToVertex() protected méthode

protected VertexNameToVertex ( String sVertexName, IVertexCollection oVertices, IVertex>.Dictionary oDictionary ) : IVertex
sVertexName String
oVertices IVertexCollection
oDictionary IVertex>.Dictionary
Résultat IVertex

VertexToVertexName() protected méthode

protected VertexToVertexName ( IVertex oVertex ) : String
oVertex IVertex
Résultat String

Property Details

StreamEncoding protected_oe static_oe property

protected static Encoding,System.Text StreamEncoding
Résultat System.Text.Encoding