⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bifparser.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/graphvisualizer/BIFParser.html#writeXMLBIF03(java.lang.String, java.lang.String, weka.core.FastVector, weka.core.FastVector)">writeXMLBIF03</A></B>(java.lang.String&nbsp;filename,              java.lang.String&nbsp;graphName,              <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;nodes,              <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;edges)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method writes a graph in XMLBIF ver.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BIFParser(java.lang.String, weka.core.FastVector, weka.core.FastVector)"><!-- --></A><H3>BIFParser</H3><PRE>public <B>BIFParser</B>(java.lang.String&nbsp;input,                 <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;nodes,                 <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;edges)</PRE><DL><DD>Constructor (if our input is a String)<P><DT><B>Parameters:</B><DD><CODE>input</CODE> - the string to be parsed (should not be null)<DD><CODE>nodes</CODE> - vector containing GraphNode objects (should be empty)<DD><CODE>edges</CODE> - vector containing GraphEdge objects (should be empty)</DL><HR><A NAME="BIFParser(java.io.InputStream, weka.core.FastVector, weka.core.FastVector)"><!-- --></A><H3>BIFParser</H3><PRE>public <B>BIFParser</B>(java.io.InputStream&nbsp;instream,                 <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;nodes,                 <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;edges)</PRE><DL><DD>Constructor (if our input is an InputStream)<P><DT><B>Parameters:</B><DD><CODE>instream</CODE> - the InputStream to be parsed (should not be null)<DD><CODE>nodes</CODE> - vector containing GraphNode objects (should be empty)<DD><CODE>edges</CODE> - vector containing GraphEdge objects (should be empty)</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="parse()"><!-- --></A><H3>parse</H3><PRE>public java.lang.String <B>parse</B>()                       throws java.lang.Exception</PRE><DL><DD>This method parses the string or the InputStream that we passed in through the constructor and builds up the m_nodes and m_edges vectors<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>- returns the name of the graph<DT><B>Throws:</B><DD><CODE>-</CODE> - Exception if both the inString and inStream are              null, i.e. no input has been provided<DD><CODE>-</CODE> - BIFFormatException if there is format of the              input is not correct. The format should conform to              XMLBIF version 0.3<DD><CODE>-</CODE> - NumberFormatException if there is an invalid              char in the probability table of a node.<DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="writeXMLBIF03(java.lang.String, java.lang.String, weka.core.FastVector, weka.core.FastVector)"><!-- --></A><H3>writeXMLBIF03</H3><PRE>public static void <B>writeXMLBIF03</B>(java.lang.String&nbsp;filename,                                 java.lang.String&nbsp;graphName,                                 <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;nodes,                                 <A HREF="../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;edges)</PRE><DL><DD>This method writes a graph in XMLBIF ver. 0.3 format to a file. However, if is reloaded in GraphVisualizer we would need to layout the graph again to display it correctly.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - - The name of the file to write in. (will overwrite)<DD><CODE>graphName</CODE> - - The name of the graph. (will be the name of network tag in XMLBIF)<DD><CODE>nodes</CODE> - - Vector containing all the nodes<DD><CODE>edges</CODE> - - Vector containing all the edges</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../weka/gui/graphvisualizer/DotParser.html" title="class in weka.gui.graphvisualizer"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="BIFParser.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -