Taskgraph
Mapper2.MapperCore.TaskgraphMapper2.MapperCore.TaskgraphEdgeMapper2.MapperCore.TaskgraphNodeMapper2.MapperCore.add_edgeMapper2.MapperCore.add_nodeMapper2.MapperCore.getedgeMapper2.MapperCore.getedgesMapper2.MapperCore.getnodeMapper2.MapperCore.getnodesMapper2.MapperCore.getsinksMapper2.MapperCore.getsourcesMapper2.MapperCore.hasnodeMapper2.MapperCore.innode_namesMapper2.MapperCore.innodesMapper2.MapperCore.nodenamesMapper2.MapperCore.num_edgesMapper2.MapperCore.num_nodesMapper2.MapperCore.outnode_namesMapper2.MapperCore.outnodes
Mapper2.MapperCore.Taskgraph — Type.struct TaskgraphFields
nameThe name of the taskgraph
nodesNodes in the taskgraph. Type:
Dict{String, TaskgraphNode}edgesEdges in the taskgraph. Type:
Vector{TaskgraphEdge}node_edges_outOutgoing adjacency list mapping node names to edge indices. Type:
Dict{String, Vector{Int64}}
node_edges_inIncoming adjacency list mapping node names to edge indices. Type:
Dict{String, Vector{Int64}}
Documentation
Data structure encoding tasks and their relationships.
Method List
Taskgraph()
Taskgraph(name)defined at /home/travis/build/hildebrandmw/Mapper2.jl/src/Taskgraphs.jl:70.
Taskgraph(name, nodes, edges)defined at /home/travis/build/hildebrandmw/Mapper2.jl/src/Taskgraphs.jl:79.
Taskgraph(nodes, edges)defined at /home/travis/build/hildebrandmw/Mapper2.jl/src/Taskgraphs.jl:129.
Important Types
Mapper2.MapperCore.TaskgraphNode — Type.struct TaskgraphNodeFields
nameThe name of this task.
metadata
Documentation
Simple container representing a task in a taskgraph.
Method List
TaskgraphNode(name; metadata)defined at /home/travis/build/hildebrandmw/Mapper2.jl/src/Taskgraphs.jl:10.
Mapper2.MapperCore.TaskgraphEdge — Type.struct TaskgraphEdgeFields
sourcesSource task names.
sinksSink task names.
metadata
Documentation
Simple container representing an edge in a taskgraph.
Method List
TaskgraphEdge(source, sink; metadata)defined at /home/travis/build/hildebrandmw/Mapper2.jl/src/Taskgraphs.jl:24.
API
Mapper2.MapperCore.add_edge — Function.add_edge(taskgraph, edge)
Add a edge to taskgraph.
Mapper2.MapperCore.add_node — Function.add_node(taskgraph, node)
Add a node to taskgraph. Error if node already exists.
Mapper2.MapperCore.getnodes — Function.getnodes(taskgraph)
Return an iterator of TaskgraphNode yielding all nodes in taskgraph.
Mapper2.MapperCore.getnode — Function.getnode(taskgraph, name)
Return the TaskgraphNode in taskgraph with name.
Mapper2.MapperCore.getedges — Function.getedges(taskgraph)
Return an iterator of TaskgraphEdge yielding all edges in taskgraph.
Mapper2.MapperCore.getedge — Function.getedge(taskgraph, index)
Return the TaskgraphEdge in taskgraph with index.
Mapper2.MapperCore.nodenames — Function.nodenames(taskgraph)
Return an iterator yielding all names of nodes in taskgraph.
Mapper2.MapperCore.num_nodes — Function.num_nodes(taskgraph)
Return the number of nodes in taskgraph.
Mapper2.MapperCore.num_edges — Function.num_edges(taskgraph)
Return the number of edges in taskgraph.
Mapper2.MapperCore.getsources — Function.getsources(taskgraph_edge)
Return the names of sources of a TaskgraphEdge.
getsources(taskgraph, edge)
Return Vector{TaskgraphNode} of sources for edge.
Mapper2.MapperCore.getsinks — Function.getsinks(taskgraph_edge)
Return the names of sinks of a TaskgraphEdge.
getsinks(taskgraph, edge)
Return Vector{TaskgraphNode} of sinks for edge.
Mapper2.MapperCore.hasnode — Function.hasnode(taskgraph, node)
Return true if taskgraph has a task named node.
Mapper2.MapperCore.innodes — Function.innodes(taskgraph, node)
Return Vector{TaskgraphNode} of unique nodes that are the source of an edge ending at node.
Mapper2.MapperCore.innode_names — Function.innode_names(taskgraph, node)
Return Set{String} of names of unique nodes that are the source of an edges ending at node.
Mapper2.MapperCore.outnodes — Function.outnodes(taskgraph, node)
Return Vector{TaskgraphNode} of unique nodes that are the sink of an edge starting at node.
Mapper2.MapperCore.outnode_names — Function.outnode_names(taskgraph, node)
Return Set{String} of names of unique nodes that are the sink of an edges starting at node.