File: is.connected.Rd

package info (click to toggle)
r-cran-rcdk 3.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 888 kB
  • sloc: makefile: 14; sh: 13
file content (33 lines) | stat: -rwxr-xr-x 992 bytes parent folder | download | duplicates (3)
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rcdk.R
\name{is.connected}
\alias{is.connected}
\title{Tests whether the molecule is fully connected.}
\usage{
is.connected(mol)
}
\arguments{
\item{mol}{The molecule to query. Should be a `jobjRef` representing an `IAtomContainer`}
}
\value{
`TRUE` if molecule is complete, `FALSE` otherwise
}
\description{
A single molecule will be represented as a 
\href{https://en.wikipedia.org/wiki/Complete_graph}{complete} graph. 
In some cases, such as for molecules in salt form, or after certain 
operations such as bond splits, the molecular graph may contained 
\href{http://mathworld.wolfram.com/DisconnectedGraph.html}{disconnected components}.
This method can be used to tested whether the molecule is complete (i.e. fully
connected).
}
\examples{
m <- parse.smiles("CC.CCCCCC.CCCC")[[1]]
is.connected(m)
}
\seealso{
\code{\link{get.largest.component}}
}
\author{
Rajarshi Guha (\email{rajarshi.guha@gmail.com})
}