JuliaGraphs / MultilayerGraphs.jl

A Julia package for the creation, manipulation and analysis of the structure, dynamics and functions of multilayer graphs.
https://juliagraphs.org/MultilayerGraphs.jl/dev
MIT License
118 stars 3 forks source link

Infer `weighttype` from `default_edge_weight` #58

Open ClaudMor opened 1 year ago

ClaudMor commented 1 year ago

This could be accomplished via Base.return_types.

Moreover, we should choose a default value that is less demanding than Float64. Maybe Bool would be a good choice, since it would imply "no weights"?