make_graph_weighted: Make graph weighted

View source: R/utilities.R

make_graph_weightedR Documentation

Make graph weighted

Description

Given a graph, create a "weight" attribute set to 1 for the edges if it doesn't exist already.

Usage

make_graph_weighted(g)

Arguments

g

igraph graph

Value

igraph graph with either all edge weights set to 1 (if the original graph was unweighted), or to their original weights if they already existed (in this case, the graph isn't modified at all).


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