scran_graph_cluster
Graph-based clustering of cells
Loading...
Searching...
No Matches
scran_graph_cluster::BuildSnnGraphResults< Node_, Weight_ > Struct Template Reference

Results of SNN graph construction. More...

#include <build_snn_graph.hpp>

Public Attributes

Node_ num_cells
 
std::vector< Node_ > edges
 
std::vector< Weight_ > weights
 

Detailed Description

template<typename Node_, typename Weight_>
struct scran_graph_cluster::BuildSnnGraphResults< Node_, Weight_ >

Results of SNN graph construction.

Template Parameters
Node_Integer type for the node indices.
Weight_Floating-point type for the edge weights.

Member Data Documentation

◆ num_cells

template<typename Node_ , typename Weight_ >
Node_ scran_graph_cluster::BuildSnnGraphResults< Node_, Weight_ >::num_cells

Number of cells in the dataset.

◆ edges

template<typename Node_ , typename Weight_ >
std::vector<Node_> scran_graph_cluster::BuildSnnGraphResults< Node_, Weight_ >::edges

Vector of paired indices defining the edges between cells. The number of edges is half the length of edges, where edges[2*i] and edges[2*i+1] define the vertices for edge i.

◆ weights

template<typename Node_ , typename Weight_ >
std::vector<Weight_> scran_graph_cluster::BuildSnnGraphResults< Node_, Weight_ >::weights

Vector of weights for the edges. This is of length equal to the number of edges, where each weights[i] corresponds to an edge i in edges.


The documentation for this struct was generated from the following file: