conceptmap.igraph: Creation of a conceptmap object from an existing graph

Description Usage Arguments Value Examples

Description

conceptmap takes an existing igraph object and tries of coerce it into a conceptmap object (encompassing the igraph object).

Usage

1
2
## S3 method for class 'igraph'
conceptmap(x, strip = TRUE, ...)

Arguments

x

An igraph object. It must have an attribute called "name" for both vertices and edges. Additional attributes are preserved for graph, vertices and edges.

strip

If TRUE, nodes without adjacent edges are removed from the graph / concept map.

...

-

Value

A conceptmap object.

Examples

1
2
3
4
5
#Create conceptmap from a complete graph with 5 nodes
require("igraph")
graph = graph.full(5)
graph = set.vertex.attribute(graph, "name", value=1:5)
simple_cm = conceptmap(graph)

Example output

This is package 'modeest' written by P. PONCET.
For a complete list of functions, use 'library(help = "modeest")' or 'help.start()'.

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

comato documentation built on May 2, 2019, 6:52 a.m.