C# Class Squared.Game.Graph.GraphExtensionMethods

显示文件 Open project: sq/Fracture

Public Methods

Method Description
ReadGraph ( this reader ) : INode
ReadGraph ( this reader, ITypeResolver typeResolver ) : INode
Serialize ( this root, IGraphWriter writer ) : void
TraverseBreadthFirst ( this root ) : IEnumerable
TraverseDepthFirst ( this root ) : IEnumerable

Method Details

ReadGraph() public static method

public static ReadGraph ( this reader ) : INode
reader this
return INode

ReadGraph() public static method

public static ReadGraph ( this reader, ITypeResolver typeResolver ) : INode
reader this
typeResolver ITypeResolver
return INode

Serialize() public static method

public static Serialize ( this root, IGraphWriter writer ) : void
root this
writer IGraphWriter
return void

TraverseBreadthFirst() public static method

public static TraverseBreadthFirst ( this root ) : IEnumerable
root this
return IEnumerable

TraverseDepthFirst() public static method

public static TraverseDepthFirst ( this root ) : IEnumerable
root this
return IEnumerable