-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix merging of networks without vertices
The function 'merge.networks' is not able to handle networks that have not vertices and also (!) no vertex attributes: The final call to 'igraph::graph.data.frame' results in an error. To fix this, the special case is identified and the list of vertices is adjusted accordingly. A corresponding test is added to the test suite. Additionally, the default case of merging only one network is handled by returning the only network right away. Signed-off-by: Claus Hunsen <hunsen@fim.uni-passau.de>
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters