Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed nodelist and edgelist reference problem #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions nx_altair/draw_altair.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def draw_networkx_edges(
###### node list argument
if isinstance(edgelist, list):
# Subset dataframe.
df_edges = df_edges.loc[df_edges['pair'].isin(edgelist)]
df_edges = edge_chart.data = df_edges.loc[df_edges['pair'].isin(edgelist)]

elif edgelist is not None:
raise Exception("nodelist must be a list or None.")
Expand Down Expand Up @@ -210,7 +210,7 @@ def draw_networkx_arrows(
###### node list argument
if isinstance(edgelist, list):
# Subset dataframe.
df_edge_arrows = df_edge_arrows.loc[df_edge_arrows['pair'].isin(edgelist)]
df_edge_arrows = edge_chart.data = df_edge_arrows.loc[df_edge_arrows['pair'].isin(edgelist)]

elif edgelist is not None:
raise Exception("nodelist must be a list or None.")
Expand Down Expand Up @@ -359,7 +359,7 @@ def draw_networkx_nodes(
###### node list argument
if isinstance(nodelist, list):
# Subset dataframe.
df_nodes = df_nodes.loc[nodelist]
df_nodes = node_chart.data = df_nodes.loc[nodelist]

elif nodelist is not None:
raise Exception("nodelist must be a list or None.")
Expand Down Expand Up @@ -492,7 +492,7 @@ def draw_networkx_labels(
###### node list argument
if isinstance(nodelist, list):
# Subset dataframe.
df_nodes = df_nodes.loc[nodelist]
df_nodes = node_chart.data = df_nodes.loc[nodelist]

elif nodelist is not None:
raise Exception("nodelist must be a list or None.")
Expand Down