OFFIS-DAI / Mango.jl

Modular Julia-based agent framework to implement multi-agent systems
https://offis-dai.github.io/Mango.jl/stable/
MIT License
8 stars 2 forks source link

Forward Graphs.jl access functions to Mango topology #63

Closed jsagerOffis closed 3 weeks ago

jsagerOffis commented 2 months ago

Mango.Topology should forward Graph.jl access functions for easier use.

Example desired behavior:

using Mango
x = complete_topology(5)
nv(x)
> 5

This would save many calls to x.graph and should be very easy to implement. Reference list of access functions for Graph.jl:

https://juliagraphs.org/Graphs.jl/dev/first_steps/access/

jsagerOffis commented 2 months ago

For reference:

Graphs.dst Graphs.edges Graphs.edgetype Graphs.has_edge Graphs.has_vertex Graphs.inneighbors Graphs.is_directed Graphs.ne Graphs.nv Graphs.outneighbors Graphs.src Graphs.vertices