|
Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
|
Functions | |
| template<Graph G> | |
| auto | connectedComponents (const G &graph, fishnet::util::BiPredicate< typename G::node_type > auto const &inRelation) |
| Compute connected components of the graph. | |
| template<Graph G> | |
| auto | connectedComponents (const G &graph) |
| Compute connected components of the graph\ Uses DefaultBiPredicate which is always true, when two nodes share an edge. | |
| template<Graph G> | |
| auto | connectedComponents (const G &graph, std::shared_ptr< fishnet::util::BlockingQueue< std::pair< int, std::vector< typename G::node_type > > > > queue, fishnet::util::BiPredicate< typename G::node_type > auto const &inRelation) |
| Compute connected components of the graph concurrently. | |
| template<Graph G> | |
| auto | connectedComponents (const G &graph, std::shared_ptr< fishnet::util::BlockingQueue< std::pair< int, std::vector< typename G::node_type > > > > queue) |
| Compute connected components of the graph concurrently. | |
| template<Graph G> | |
| auto | findPath (const G &graph, const typename G::node_type &start, const typename G::node_type &goal) |
| Find breadth-first search between between start and goal node. | |
| template<Graph G> | |
| util::input_range_of< typename G::edge_type > auto | getPath (const G &graph, const typename G::node_type &start, const typename G::node_type &goal) |
| Find breadth-first search between between start and goal node. | |
| template<Graph G, Graph O> requires std::same_as<typename G::node_type, typename O::node_type> | |
| G | neighborhood (const G &graph, const typename G::node_type &node, size_t order, O &&outputGraph) |
| template<Graph G> requires std::is_default_constructible_v<G> | |
| G | neighborhood (const G &graph, const typename G::node_type &node, size_t order) |
| template<Graph G> requires (!std::is_default_constructible_v<G> && std::is_copy_constructible_v<G>) | |
| G | neighborhood (const G &graph, const typename G::node_type &node, size_t order) |
| template<Graph G, typename P , typename R = std::invoke_result_t<std::decay_t<P>>> requires std::same_as<typename G::node_type, typename R::node_type> | |
| fishnet::util::forward_range_of< R > auto | subgraphs (const G &graph, P &&emptyGraphProducer) |
| Find all subgraphs in the given graph. | |
| template<Graph G> requires std::is_default_constructible_v<G> | |
| fishnet::util::forward_range_of< G > auto | subgraphs (const G &graph) |
| Find all subgraphs in the given graph. | |
| auto fishnet::graph::BFS::connectedComponents | ( | const G & | graph | ) |
Compute connected components of the graph\ Uses DefaultBiPredicate which is always true, when two nodes share an edge.
| G | graph type |
| graph | graph |
| auto fishnet::graph::BFS::connectedComponents | ( | const G & | graph, |
| fishnet::util::BiPredicate< typename G::node_type > auto const & | inRelation | ||
| ) |
Compute connected components of the graph.
| G | graph type |
| graph | graph |
| inRelation | BiPredicate indicating whether two nodes are in relation |
| auto fishnet::graph::BFS::connectedComponents | ( | const G & | graph, |
| std::shared_ptr< fishnet::util::BlockingQueue< std::pair< int, std::vector< typename G::node_type > > > > | queue | ||
| ) |
Compute connected components of the graph concurrently.
| G | graph type |
| graph | graph |
| queue | shared pointer to blocking queue, storing pairs of component-ids and vectors of nodes |
| auto fishnet::graph::BFS::connectedComponents | ( | const G & | graph, |
| std::shared_ptr< fishnet::util::BlockingQueue< std::pair< int, std::vector< typename G::node_type > > > > | queue, | ||
| fishnet::util::BiPredicate< typename G::node_type > auto const & | inRelation | ||
| ) |
Compute connected components of the graph concurrently.
| G | graph type |
| graph | graph |
| queue | shared pointer to blocking queue, storing pairs of component-ids and vectors of nodes |
| inRelation | BiPredicate indicating whether two nodes are in relation |
| auto fishnet::graph::BFS::findPath | ( | const G & | graph, |
| const typename G::node_type & | start, | ||
| const typename G::node_type & | goal | ||
| ) |
Find breadth-first search between between start and goal node.
| G | graph type |
| graph | graph |
| start | start node |
| goal | target node |
| util::input_range_of< typename G::edge_type > auto fishnet::graph::BFS::getPath | ( | const G & | graph, |
| const typename G::node_type & | start, | ||
| const typename G::node_type & | goal | ||
| ) |
Find breadth-first search between between start and goal node.
| G | graph type |
| graph | graph |
| start | start node |
| goal | target node |
| G fishnet::graph::BFS::neighborhood | ( | const G & | graph, |
| const typename G::node_type & | node, | ||
| size_t | order | ||
| ) |
| G fishnet::graph::BFS::neighborhood | ( | const G & | graph, |
| const typename G::node_type & | node, | ||
| size_t | order | ||
| ) |
| G fishnet::graph::BFS::neighborhood | ( | const G & | graph, |
| const typename G::node_type & | node, | ||
| size_t | order, | ||
| O && | outputGraph | ||
| ) |
| fishnet::util::forward_range_of< G > auto fishnet::graph::BFS::subgraphs | ( | const G & | graph | ) |
Find all subgraphs in the given graph.
| G |
| graph | input graph |
| fishnet::util::forward_range_of< R > auto fishnet::graph::BFS::subgraphs | ( | const G & | graph, |
| P && | emptyGraphProducer | ||
| ) |
Find all subgraphs in the given graph.
| G |
| graph | input graph |
| emptyGraphProducer | producer function to create an empty graph of type G |