Learn R Programming

comato (version 1.1)

edge.vector: Forming the edge vector of a conceptmap object

Description

edge.vector transforms a concept map into a numeric vector that contains for each occuring pair of concepts whether or not this pair is connected by a proposition in the concept map.

Usage

edge.vector(x)

Arguments

x

A conceptmap object.

Value

A numeric vector. The columns are named after the concept-pairs which are sorted alphabetically.

Examples

Run this code
# NOT RUN {
#Create concept map from a random graph
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
cm = conceptmap(g1)

edge.vector(cm)
# }

Run the code above in your browser using DataLab