title: How to specify maximum cost when running BFS Neo4j?
body: <p>The <a href="https://neo4j.com/docs/graph-data-science/current/introduction/" rel="nofollow noreferrer">docs</a> of Neo4j data science library state:</p>
  <blockquote>
  <p>There are multiple termination conditions supported for the traversal,
  based on either reaching one of several target nodes, reaching a
  maximum depth, <strong>exhausting a given budget of traversed relationship
  cost</strong>, or just traversing the whole graph.</p>
  </blockquote>
  <p>But in the <a href="https://neo4j.com/docs/graph-data-science/current/algorithms/bfs/" rel="nofollow noreferrer">algorithm specific parameters</a> I could not find any parameter for constraining the maximum cost of the traversal (or simply number of relationships if cost is 1). The Only parameters listed are <code>startNodeId, targetNodes and maxDepth</code>.</p>
  <p>Any Idea if this actually can be done or if the docs are incorrect?</p>