-
Notifications
You must be signed in to change notification settings - Fork 108
/
pungraph.i
33 lines (27 loc) · 1014 Bytes
/
pungraph.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// pungraph.i
// Templates for SNAP
// Note: This file does not include all SNAP templates.
%extend TUNGraph {
TUNGraphNodeI BegNI() {
return TUNGraphNodeI($self->BegNI());
}
TUNGraphNodeI EndNI() {
return TUNGraphNodeI($self->EndNI());
}
TUNGraphEdgeI BegEI() {
return TUNGraphEdgeI($self->BegEI());
}
TUNGraphEdgeI EndEI() {
return TUNGraphEdgeI($self->EndEI());
}
};
// Basic Undirected Graphs
%template(PUNGraph) TPt< TUNGraph >;
%template(LoadEdgeList_PUNGraph) TSnap::LoadEdgeList<PUNGraph>;
%template(PrintGraphStatTable_PUNGraph) PrintGraphStatTable<PUNGraph>;
%template(NodesGTEDegree_PUNGraph) NodesGTEDegree<PUNGraph>;
%template(GenRndGnm_PUNGraph) TSnap::GenRndGnm<PUNGraph>;
%template(MxSccSz_PUNGraph) TSnap::GetMxScc<PUNGraph>;
%template(MxWccSz_PUNGraph) TSnap::GetMxWccSz<PUNGraph>;
%template(MxDegree_PUNGraph) MxDegree<PUNGraph>;
// End Basic Undirected Graphs