-
Notifications
You must be signed in to change notification settings - Fork 249
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
node names in vertex dataframe type not consistent with ones generated from edge in Graph.DataFrame method #347
Comments
Summon @iosonofabio -- can you please check when you have some time? |
Yes will check
…On Thu, Dec 3, 2020, at 18:28, Tamás Nepusz wrote:
Summon @iosonofabio <https://github.com/iosonofabio> -- can you please
check when you have some time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#347 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJFEAD73AWPAK4XTTMEJWTSS443JANCNFSM4ULMA7VA>.
|
@alexwwang almost correct. That line checks if the specified vertices contain the ones inferred from the edges, there could be more vertices that have no edges (singletons). Independent of that there is a bug. It is a little unclear what the expected behaviour is though. The first two columns of the
ATM we force vertex names to be strings: I wouldn't want to change that. In that sense, the user here specified a wrong input for My suggestion is that if the user specified Any opinion on the table? Once we decide the fix is 5 minutes. |
That's okay, this is a convention that is used throughout the entire library. In the long term I would be happier if we could hide the existence of numeric vertex IDs completely so the user would be able to use arbitrary Python objects as vertices (just like in NetworkX), but that would require a complete overhaul of the API of
For the record, we agreed this morning on Teams that we will have an extra argument that lets the user decide whether the vertices are referred to with numeric IDs or not. This will be released with the next version of |
Describe the bug
In Graph.DataFrame method, on line 3125
this is used to check if number of nodes passed in from vertices dataframe equals to ones counted from edges.
If we don't set the type of
source
andtarget
columns in edge dataframe tostr
, but leave them toint
,this will raise the error below:
However no document mentioned this before.
To reproduce
Version information
pip install python-igraph
version: 0.8.3
The text was updated successfully, but these errors were encountered: