Ask for help: Plot data without a target point

Skip to first unread message


Aug 31, 2022, 7:13:13 AM8/31/22
to networkx-discuss
Hello everyone,
I have data that sometimes has a source and a target and sometimes only a source. Is it possible to plot all the data even tho they dont have a target? e.g. if they dont have a target they should just appear as circles without edges.

Here you can find a more detailed view on my problem: 
Feel free to directly answer the question on stackoverflow.
Thank you in advance

Dan Schult

Aug 31, 2022, 7:21:33 AM8/31/22
The size of your nodes is zero when you have a node without an outgoing connection. The degree is zero so 400 times it is also zero.  I would suggest `(v + 1) * 400` or some other formula that gives a nonzero node size for any degree.


Sep 1, 2022, 5:26:30 AM9/1/22
to networkx-discuss
thank you for your response. The problem I see is that the nodes without an outgoing connection are already being discarded with the command: "df = df.groupby(df.columns.tolist(),as_index=False).size()" which I use to calculate the occurences.
Reply all
Reply to author
0 new messages