@@ -26,7 +26,9 @@ type SamplingStrategy struct {
26
26
ISamplingStrategy ISamplingStrategy
27
27
}
28
28
29
- // supported sampling methods so far
29
+ /*
30
+ DELETION GRAPH SAMPLING METHODS
31
+ */
30
32
type DeletionRandomNodeSampling struct { IDeletionSamplingStrategy }
31
33
type DeletionRandomNodeNeighbourSampling struct { IDeletionSamplingStrategy }
32
34
type DeletionInclusiveRandomNodeNeighbourSampling struct { IDeletionSamplingStrategy }
@@ -219,6 +221,10 @@ func (strategy *DeletionSamplingStrategy) Sample(graph *UndirectedGraph, sampled
219
221
return ng , nil
220
222
}
221
223
224
+ /*
225
+ PRESERVATION GRAPH SAMPLING METHODS
226
+ */
227
+
222
228
type PreservationRandomNodeSampling struct { ISamplingStrategy }
223
229
type PreservationRandomNodeNeighbourSampling struct { ISamplingStrategy }
224
230
type PreservationInclusiveRandomNodeNeighbourSampling struct { ISamplingStrategy }
@@ -233,12 +239,6 @@ type PreservationRandomWalkWithJumpSampling struct{ ISamplingStrategy }
233
239
type PreservationRandomWalkWithRestartSampling struct { ISamplingStrategy }
234
240
type PreservationTopKEdgeSampling struct { ISamplingStrategy }
235
241
236
- type PreservationInducedRandomEdgeSampling struct { ISamplingStrategy }
237
- type PreservationSnowballSampling struct { ISamplingStrategy }
238
- type PreservationForestFireSampling struct { ISamplingStrategy }
239
- type PreservationFrontierSampling struct { ISamplingStrategy }
240
- type PreservationExpansionSampling struct { ISamplingStrategy }
241
-
242
242
func (strategy * PreservationRandomNodeSampling ) Sample (g UndirectedGraph , sampledGraphSizeRatio float32 ) (UndirectedGraph , error ) {
243
243
ng := UndirectedGraph {
244
244
Nodes : make (map [Node ]bool ),
@@ -556,6 +556,10 @@ func (strategy *PreservationTopKEdgeSampling) Sample(g UndirectedGraph, sampledG
556
556
return ng , nil
557
557
}
558
558
559
+ /*
560
+ CONTRACTION GRAPH SAMPLING METHODS
561
+ */
562
+
559
563
type ContractionRandomNodeSampling struct { ISamplingStrategy }
560
564
type ContractionRandomNodeNeighbourSampling struct { ISamplingStrategy }
561
565
type ContractionInclusiveRandomNodeNeighbourSampling struct { ISamplingStrategy }
@@ -568,12 +572,6 @@ type ContractionRandomWalkWithRestartSampling struct{ ISamplingStrategy }
568
572
type ContractionRandomWalkWithJumpSampling struct { ISamplingStrategy }
569
573
570
574
type ContractionPageRankNodeSampling struct { ISamplingStrategy }
571
- type ContractionInducedRandomEdgeSampling struct { ISamplingStrategy }
572
-
573
- type ContractionSnowballSampling struct { ISamplingStrategy }
574
- type ContractionForestFireSampling struct { ISamplingStrategy }
575
- type ContractionFrontierSampling struct { ISamplingStrategy }
576
- type ContractionExpansionSampling struct { ISamplingStrategy }
577
575
578
576
func (strategy * ContractionRandomNodeSampling ) Sample (graph UndirectedGraph , sampledGraphSizeRatio float32 ) (UndirectedGraph , error ) {
579
577
ng := UndirectedGraph {}
0 commit comments