MCPcopy Create free account
hub / github.com/GATECH-EIC/GCoD / plot_bd

Function plot_bd

plot_adj.py:32–40  ·  view source on GitHub ↗
(ax, bd, adj_size, color)

Source from the content-addressed store, hash-verified

30
31
32def plot_bd(ax, bd, adj_size, color):
33 # print(bd)
34 nb = len(bd)
35 bd.insert(0, 0)
36 bd.append(adj_size)
37 for i in range(nb):
38 x, y, z = bd[i], bd[i + 1], bd[i + 2]
39 ax.plot([x, z], [y, y], c=color, lw=5, alpha=0.6)
40 ax.plot([y, y], [x, z], c=color, lw=5, alpha=0.6)
41
42def plot_raw_adj(data):
43 edge_attr = torch.ones(data.edge_index[0].size(0))

Callers 2

plot_optimzed_adjFunction · 0.85
plot_hard_optimzed_adjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected