inEdges(graph)
inEdges()所属R语言包:graph
Generic Method inEdges
通用方法inEdges
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns a list of all incoming edges for the specified nodes.
返回指定节点的所有入边列表。
用法----------Usage----------
inEdges(node, object)
参数----------Arguments----------
参数:node
character vector of node names
特征向量的节点名称
参数:object
a graph object
graph对象
Details
详情----------Details----------
If no node argument is specified, inEdges returns the incoming edges for all nodes in the graph.
如果没有node参数指定,inEdges图中的所有节点返回传入的边缘。
For an undirected graph, inEdges returns all edges for the specified nodes.
对于一个无向图,inEdges返回指定节点的所有边缘。
值----------Value----------
A list with length matching the length of node. If node was missing, a list containing an element for each node in the graph.
与匹配node长度的长度列表。如果node失踪,一个列表,包含图中的每个节点的元素。
Each list element contains a character vector of node names giving the nodes that have outgoing edges to the node given by the name of the list element.
每个列表元素包含一个特征向量,给有出边列表元素的名称节点的节点的节点名称。
作者(S)----------Author(s)----------
R. Gentleman
参见----------See Also----------
removeNode, clearNode
removeNode,clearNode
举例----------Examples----------
V <- LETTERS[1:4]
edL3 <- vector("list", length=4)
for(i in 1:4)
edL3[[i]] <- list(edges=(i%%4)+1, weights=i)
names(edL3) <- V
gR3 <- new("graphNEL", nodes=V, edgeL=edL3, "directed")
inEdges(c("A", "B"), gR3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|