示例#1
0
文件: Wrap3D.cs 项目: dtklinh/CRFTool
 public static GWGraph <Node3DWrap <NodeData>, Edge3DWrap <EdgeData>, GraphData> Wrap3D <NodeData, EdgeData, GraphData>(this IGWGraph <NodeData, EdgeData, GraphData> graph, Func <IGWNode <NodeData, EdgeData, GraphData>, Node3DWrap <NodeData> > convertNodeData, Func <IGWEdge <NodeData, EdgeData, GraphData>, Edge3DWrap <EdgeData> > convertEdgeData)
 {
     return(graph.Convert <NodeData, Node3DWrap <NodeData>, EdgeData, Edge3DWrap <EdgeData>, GraphData, GraphData>(convertNodeData, convertEdgeData, (g) => g.Data));
 }
示例#2
0
文件: Wrap3D.cs 项目: dtklinh/CRFTool
 //public static GWGraph<Node3DWrap<NodeData>, EdgeData, GraphData> Wrap3D<NodeData, EdgeData, GraphData>(this IGWGraph<NodeData, EdgeData, GraphData> graph)
 //{
 //    return graph.Convert<NodeData, Node3DWrap<NodeData>, EdgeData, EdgeData, GraphData, GraphData>((n) => new Node3DWrap<NodeData>(n.Data), (e) => e.Data, (g) => g.Data);
 //}
 public static GWGraph <Node3DWrap <NodeData>, Edge3DWrap <EdgeData>, GraphData> Wrap3D <NodeData, EdgeData, GraphData>(this IGWGraph <NodeData, EdgeData, GraphData> graph)
 {
     return(graph.Convert <NodeData, Node3DWrap <NodeData>, EdgeData, Edge3DWrap <EdgeData>, GraphData, GraphData>((n) => new Node3DWrap <NodeData>(n.Data), (e) => new Edge3DWrap <EdgeData>(e.Data), (g) => g.Data));
 }