コード例 #1
0
ファイル: Pebbler.cs プロジェクト: wcatykid/GeoShader
        public Pebbler(Hypergraph.Hypergraph <GeometryTutorLib.ConcreteAST.GroundedClause, Hypergraph.EdgeAnnotation> graph,
                       PebblerHypergraph <ConcreteAST.GroundedClause, Hypergraph.EdgeAnnotation> pGraph)
        {
            this.graph        = graph;
            this.pebblerGraph = pGraph;

            forwardPebbledEdges  = new HyperEdgeMultiMap <Hypergraph.EdgeAnnotation>(pGraph.vertices.Length);
            backwardPebbledEdges = new HyperEdgeMultiMap <Hypergraph.EdgeAnnotation>(pGraph.vertices.Length);

            forwardPebbledEdges.SetOriginalHypergraph(graph);
            backwardPebbledEdges.SetOriginalHypergraph(graph);
        }
コード例 #2
0
 //
 // Create the Pebbler version of the hypergraph for analysis (integer-based hypergraph)
 //
 private void ConstructPebblingHypergraph()
 {
     // Create the Pebbler version of the hypergraph (all integer representation) from the original hypergraph
     pebblerGraph = graph.GetPebblerHypergraph();
 }