Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Valdecy/pyCombinatorial
/ remove_node
Function
remove_node
pyCombinatorial/algorithm/ksp.py:100–103 ·
view source on GitHub ↗
(G, target)
Source
from the content-addressed store, hash-verified
98
99
# Function: Remove Node
100
def
remove_node(G, target):
101
del G[target]
102
for
nbrs in G.values():
103
nbrs.discard(target)
104
105
# Function: Subgraph
106
def
subgraph(G, vertices):
Callers
1
simple_cycles
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected