igraph_to_edgelist: Returns edgelist with weights from a weighted igraph graph

View source: R/converter.R

igraph_to_edgelistR Documentation

Returns edgelist with weights from a weighted igraph graph

Description

This function is just used internally for testing the package

Usage

igraph_to_edgelist(g, sort = TRUE)

Arguments

g

igraph graph with weighted edges

sort

sorts the edge list lexicographically before returning

Value

A matrix where the first two columns indicate the incident vertices, and the third is the weight of the corresponding edge.


clustAnalytics documentation built on May 29, 2024, 12:18 p.m.