File: print.igraph.es.Rd

package info (click to toggle)
r-cran-igraph 1.0.1-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,232 kB
  • sloc: ansic: 173,538; cpp: 19,365; fortran: 4,550; yacc: 1,164; tcl: 931; lex: 484; makefile: 149; sh: 9
file content (83 lines) | stat: -rw-r--r-- 2,363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/iterators.R
\name{print.igraph.es}
\alias{print.igraph.es}
\title{Print an edge sequence to the screen}
\usage{
\method{print}{igraph.es}(x, full = igraph_opt("print.full"), ...)
}
\arguments{
\item{x}{An edge sequence.}

\item{full}{Whether to show the full sequence, or truncate the output
to the screen size.}

\item{...}{Currently ignored.}
}
\value{
The edge sequence, invisibly.
}
\description{
For long edge sequences, the printing is truncated to fit to the
screen. Use \code{print} explicitly and the code{full} argument to
see the full sequence.
}
\details{
Edge sequences created with the double bracket operator are printed
differently, together with all attributes of the edges in the sequence,
as a table.
}
\examples{
# Unnamed graphs
g <- make_ring(10)
E(g)

# Named graphs
g2 <- make_ring(10) \%>\%
  set_vertex_attr("name", value = LETTERS[1:10])
E(g2)

# All edges in a long sequence
g3 <- make_ring(200)
E(g3)
E(g3) \%>\% print(full = TRUE)

# Metadata
g4 <- make_ring(10) \%>\%
  set_vertex_attr("name", value = LETTERS[1:10]) \%>\%
  set_edge_attr("weight", value = 1:10) \%>\%
  set_edge_attr("color", value = "green")
E(g4)
E(g4)[[]]
E(g4)[[1:5]]
}
\seealso{
Other vertex and edge sequences: \code{\link{$.igraph.es}},
  \code{\link{$<-.igraph.es}}, \code{\link{E<-}},
  \code{\link{[<-.igraph.es}},
  \code{\link{[[<-.igraph.es}},
  \code{\link{igraph-es-attributes}},
  \code{\link{igraph-es-attributes}},
  \code{\link{igraph-es-attributes}},
  \code{\link{igraph-es-attributes}},
  \code{\link{igraph-es-attributes}};
  \code{\link{$.igraph.vs}}, \code{\link{$<-.igraph.vs}},
  \code{\link{V<-}}, \code{\link{[<-.igraph.vs}},
  \code{\link{[[<-.igraph.vs}},
  \code{\link{igraph-vs-attributes}},
  \code{\link{igraph-vs-attributes}},
  \code{\link{igraph-vs-attributes}},
  \code{\link{igraph-vs-attributes}},
  \code{\link{igraph-vs-attributes}}; \code{\link{E}};
  \code{\link{V}}; \code{\link{[.igraph.es}},
  \code{\link{\%--\%}}, \code{\link{\%->\%}},
  \code{\link{\%<-\%}}, \code{\link{igraph-es-indexing}};
  \code{\link{[.igraph.vs}},
  \code{\link{igraph-vs-indexing}};
  \code{\link{[[.igraph.es}},
  \code{\link{igraph-es-indexing2}};
  \code{\link{[[.igraph.vs}},
  \code{\link{igraph-vs-indexing2}};
  \code{\link{print.igraph.vs}}
}