ccomps(1)


NAME

   ccomps - connected components filter for graphs

SYNOPSIS

   ccomps [ -sxvenzC?  ] [ -X[#%]s[-f] ] [ -ooutfile ] [ files ]

DESCRIPTION

   ccomps  decomposes graphs into their connected components, printing the
   components to standard output.

OPTIONS

   The following options are supported:

   -e     Do not induce edges in the connected components.

   -s     No output graph is printed. The return  value  can  be  used  to
          check if the graph is connected or not.

   -x     Only the connected components are printed, as separate graphs.

   -v     Counts of nodes, edges and connected components are printed.

   -z     Sort  components  by  size, with the largest first. This is only
          effective if either -x or -X#  is  present.   Thus,  -zX#0  will
          cause the largest component to be printed.

   -C     Use  clusters in computing components in addition to normal edge
          connectivity. In essence, this gives the connected components of
          the derived graph in which nodes top-level clusters and nodes in
          the original graph. This maintains all subgraph structure within
          a component, even if a subgraph does not contain any nodes.

   -n     Do  not project subgraph structure. Normally, if ccomps produces
          components as graphs distinct from  the  input  graph,  it  will
          define subgraphs which are projections of subgraphs of the input
          graph onto the  component.  (If  the  projection  is  empty,  no
          subgraph  is  produced.)   If  this  flag  is set, the component
          contains only the relevant nodes and edges.

   -X node_name
          Prints only the component containing the node node_name, if any.

   -X# start


   -X# start-
   -X# start-last
          Prints only components in the given range  of  indices.  In  the
          first  form, only the component whose index is start, if any, is
          printed.  In the second form, each component whose index  is  at
          least  start is printed. In the last form, only those components
          whose indices are in the range [Istart,last] are printed.  Thus,
          the flag -x is equivalent to -X#0-.

   -X# min


   -X# min-
   -X# min-max
          Prints only components in the given range of sizes. In the first
          form, only a component whose size is min, if  any,  is  printed.
          In the second form, each component whose size is at least min is
          printed. In the last form, only those components whose sizes are
          in the range [Imin,max] are printed.

   -o outfile
          If  specified,  each  graph  will be written to a different file
          with the names derived from outfile. In particular, if  both  -o
          and  -x flags are used, then each connected component is written
          to a different file. If outfile does  not  have  a  suffix,  the
          first file will have the name outfile; then next outfile_1, then
          next outfile_2, and so on.  If outfile has a suffix,  i.e.,  has
          the  form  base.sfx,  then  the  files  will  be named base.sfx,
          base_1.sfx, base_2.sfx, etc.

   By default, each input graph is printed, with each connected  component
   given  as  a  subgraph whose name is a concatenation of the name of the
   input graph, the string "_cc_" and the number of the component.

OPERANDS

   The following operand is supported:

   files   Names of files containing 1 or more graphs in dot  format.   If
           no files operand is specified, the standard input will be used.

RETURN CODES

   Unless  used  to extract a single connected component, ccomps returns 0
   if all the input graphs are connected; and non-zero if  any  graph  has
   multiple  components,  or  any  error  occurred.   If just extracting a
   single component, ccomps returns 0 on success and non-zero if an  error
   occurred.

BUGS

   It  is  possible,  though  unlikely,  that the names used for connected
   components and their subgraphs  may  conflict  with  existing  subgraph
   names.

AUTHORS

   Stephen C. North <north@research.att.com>
   Emden R. Gansner <erg@research.att.com>

SEE ALSO

   gc(1),  dot(1),  gvpr(1),  gvcolor(1),  acyclic(1), sccmap(1), tred(1),
   libgraph(3)

                             30 April 2011                       CCOMPS(1)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.