docstr: Returns the residual capacity of an edge i in the direction away
  from its endpoint p.
docstr_tok: ["Returns","the","residual","capacity","of","an","edge","i","in","the","direction","away","from","its","endpoint","p","."]
code: def residual_capacity(self, i, p):
      """Returns the residual capacity of an edge i in the direction away
      from its endpoint p.
      """
      return (
          self.edge_capacities[i] - self.edge_flow[i]
          if self.edge_sources[i] == p
          else self.edge_flow[i]
      )
  
imports: from itertools import chain, islice, repeat
  from math import ceil, sqrt
  import networkx
  from networkx.utils import not_implemented_for
label_desc: Use image node_id 14 for calling the _DataEssentialsAndFunctions obj's underlying member method code with example usage: obj.residual_capacity(i, p) and returns: unknown