luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Network cannot be constructed without edges #81

Closed luukvdmeer closed 3 years ago

luukvdmeer commented 3 years ago

Describe the bug In tidygraph, you can construct a network without edges, i.e. tbl_graph(nodes, edges = NULL). In sfnetworks this is not possible.

Expected behavior Altough not super useful, a network without edges is still a valid network and you should be able to construct it. (Note: this is also helpful for some internal code)

luukvdmeer commented 3 years ago

Fixed on develop, will be pushed to master soon, along with the new version

luukvdmeer commented 3 years ago

Fix pushed to master. Close