cwltool.subgraph
================

.. py:module:: cwltool.subgraph


Attributes
----------

.. autoapisummary::

   cwltool.subgraph.Node
   cwltool.subgraph.UP
   cwltool.subgraph.DOWN
   cwltool.subgraph.INPUT
   cwltool.subgraph.OUTPUT
   cwltool.subgraph.STEP


Functions
---------

.. autoapisummary::

   cwltool.subgraph.subgraph_visit
   cwltool.subgraph.declare_node
   cwltool.subgraph.find_step
   cwltool.subgraph.get_subgraph
   cwltool.subgraph.get_step
   cwltool.subgraph.get_process


Module Contents
---------------

.. py:data:: Node

.. py:data:: UP
   :value: 'up'


.. py:data:: DOWN
   :value: 'down'


.. py:data:: INPUT
   :value: 'input'


.. py:data:: OUTPUT
   :value: 'output'


.. py:data:: STEP
   :value: 'step'


.. py:function:: subgraph_visit(current, nodes, visited, direction)

.. py:function:: declare_node(nodes, nodeid, tp)

   Record the given nodeid in the graph.

   If the nodeid is already present, but its type is unset, set it.
   :returns: The Node tuple (even if already present in the graph).


.. py:function:: find_step(steps, stepid, loading_context)

   Find the step (raw dictionary and WorkflowStep) for a given step id.


.. py:function:: get_subgraph(roots, tool, loading_context)

   Extract the subgraph for the given roots.


.. py:function:: get_step(tool, step_id, loading_context)

   Extract a single WorkflowStep for the given step_id.


.. py:function:: get_process(tool, step_id, loading_context)

   Find the underlying Process for a given Workflow step id.


