would be nice for the visNetwork graphic to read the flow type from sir$flows() and generate an edge label with the full flow.
for instance, for the sample SIR model, we have
sir$flows()
from to flow type
1 S I foi per_capita
2 I R gamma per_capita
currently, the edges of the compartmental graph are labelled simply with the entry in flow. it would be clearer if these flows were labelled with the compound entry flow * from (since type is per_capita). we'd have to write a labeller based on type.
would be nice for the
visNetworkgraphic to read the flow type fromsir$flows()and generate an edge label with the full flow.for instance, for the sample SIR model, we have
currently, the edges of the compartmental graph are labelled simply with the entry in
flow. it would be clearer if these flows were labelled with the compound entryflow * from(sincetypeisper_capita). we'd have to write a labeller based on type.