Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/THUDM/CogDL
/ nodes
Method
nodes
cogdl/data/data.py:947–948 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
945
return
data
946
947
def
nodes(self):
948
return
torch.arange(self.num_nodes)
949
950
def
set_grb_adj(self, adj):
951
self.grb_adj = adj
Callers
15
plot_graph
Function · 0.95
_call
Method · 0.95
gen_node_pairs
Function · 0.95
load_inductive_dataset
Function · 0.80
read_geom_data
Function · 0.80
simulate_walks
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
_simulate_walks
Method · 0.80
_preprocess_transition_probs
Method · 0.80
forward
Method · 0.80
_simulate_walks
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected