Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
ClusterAlgorithm.hpp
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <fishnet/Graph.hpp>
5
6namespace fishnet {
7
8template<typename R>
10 std::vector<std::vector<R>> clusters;
11 std::vector<R> noise;
12};
13
14template<typename C, typename G>
16
17template<fishnet::graph::Graph G>
18using ClusterAlgorithm_t = std::function<ClusterResult<typename G::node_type>(const G &)>;
19
20} // namespace fishnet
Definition ClusterAlgorithm.hpp:15
Interface for graph types. Every graph type has to inherit from AbstractGraph.
Definition GraphModel.hpp:23
Definition FunctionalConcepts.hpp:9
Definition BFSClustering.hpp:5
std::function< ClusterResult< typename G::node_type >(const G &)> ClusterAlgorithm_t
Definition ClusterAlgorithm.hpp:18
Definition ClusterAlgorithm.hpp:9
std::vector< std::vector< R > > clusters
Definition ClusterAlgorithm.hpp:10
std::vector< R > noise
Definition ClusterAlgorithm.hpp:11