find_intersection Function

public function find_intersection(array1, array2, num_labels) result(intersect_label)

Find the common element in two arrays, given a total of num_labels unique elements. Used by find_spanning_cluster.

Arguments

Type IntentOptional AttributesName
integer, intent(in), dimension(:):: array1

Array to analyse.

integer, intent(in), dimension(:):: array2

Array to analyse.

integer, intent(in) :: num_labels

The known number of unique non-zero elements.

Return Value integer

The first non-zero common element.


Called by

proc~~find_intersection~~CalledByGraph proc~find_intersection find_intersection proc~find_spanning_cluster find_spanning_cluster proc~find_spanning_cluster->proc~find_intersection proc~probability_distribution probability_distribution proc~probability_distribution->proc~find_spanning_cluster proc~random_walkers random_walkers proc~random_walkers->proc~find_spanning_cluster proc~cluster_number_density cluster_number_density proc~cluster_number_density->proc~find_spanning_cluster

Contents

None