<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="IDAGUI.html">
<link rel="next" href="IDAHotKey.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="IDA" rel="Chapter" href="IDA.html">
<link title="IDAColor" rel="Chapter" href="IDAColor.html">
<link title="IDAGUI" rel="Chapter" href="IDAGUI.html">
<link title="IDAGraph" rel="Chapter" href="IDAGraph.html">
<link title="IDAHotKey" rel="Chapter" href="IDAHotKey.html">
<link title="IDATopLoop" rel="Chapter" href="IDATopLoop.html">
<link title="JITRegion" rel="Chapter" href="JITRegion.html">
<link title="Z3" rel="Chapter" href="Z3.html">
<link title="IR" rel="Chapter" href="IR.html">
<link title="IRLocalOpt" rel="Chapter" href="IRLocalOpt.html">
<link title="IRTypeCheck" rel="Chapter" href="IRTypeCheck.html">
<link title="PpIR" rel="Chapter" href="PpIR.html">
<link title="X86" rel="Chapter" href="X86.html">
<link title="X86CFG" rel="Chapter" href="X86CFG.html">
<link title="X86CFGAssembler" rel="Chapter" href="X86CFGAssembler.html">
<link title="X86Constraints" rel="Chapter" href="X86Constraints.html">
<link title="X86Decode" rel="Chapter" href="X86Decode.html">
<link title="X86Disasm" rel="Chapter" href="X86Disasm.html">
<link title="X86Encode" rel="Chapter" href="X86Encode.html">
<link title="X86InternalOperand" rel="Chapter" href="X86InternalOperand.html">
<link title="X86LocalOpt" rel="Chapter" href="X86LocalOpt.html">
<link title="X86TextualAssembler" rel="Chapter" href="X86TextualAssembler.html">
<link title="X86TypeCheck" rel="Chapter" href="X86TypeCheck.html">
<link title="X86Util" rel="Chapter" href="X86Util.html">
<link title="X86Random" rel="Chapter" href="X86Random.html">
<link title="X86ToIR" rel="Chapter" href="X86ToIR.html">
<link title="ASMUtil" rel="Chapter" href="ASMUtil.html">
<link title="LowLevel-old" rel="Chapter" href="LowLevel-old.html">
<link title="StringUtil" rel="Chapter" href="StringUtil.html">
<link title="Util" rel="Chapter" href="Util.html"><link title="Types" rel="Section" href="#6_Types">
<link title="Functions" rel="Section" href="#6_Functions">
<title>IDAGraph</title>
</head>
<body>
<div class="navbar"><a href="IDAGUI.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="IDAHotKey.html">Next</a>
</div>
<center><h1>Module <a href="type_IDAGraph.html">IDAGraph</a></h1></center>
<br>
<pre><span class="keyword">module</span> IDAGraph: <code class="code">sig</code> <a href="IDAGraph.html">..</a> <code class="code">end</code></pre>Module for visualizing graphs in IDA's interactive graph viewer.<br>
<hr width="100%">
<br>
<span id="6_Types"><h6>Types</h6></span><br>
<br><code><span id="TYPEgraph_viewer"><span class="keyword">type</span> <code class="type">'a</code> graph_viewer</span> = {</code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>graph&nbsp;: <code class="type">'a</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>sizer&nbsp;: <code class="type">'a -> int</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>text&nbsp;: <code class="type">'a -> int -> string</code>;</code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code>&nbsp;&nbsp;</code></td>
<td align="left" valign="top" >
<code>edges&nbsp;: <code class="type">'a -> (int * int) list</code>;</code></td>

</tr></table>
}

<div class="info">
A type for visualizing the graph layout on IDA's graph viewer.  The <code class="code">graph</code>

    itself is an arbitrary object.  The <code class="code">sizer</code> function produces the number of

    vertices, given the object.  The <code class="code">text</code> function takes an object and an 

    integer (a vertex number), and returns the text for that vertex.  The 

    <code class="code">edges</code> function takes an object and returns a list of pairs between 

    numbered vertices.  The uniq field is deprecated and should be removed.<br>
</div>

<br>
<span id="6_Functions"><h6>Functions</h6></span><br>
<pre><span id="VALshow_graph"><span class="keyword">val</span> show_graph</span> : <code class="type">'a <a href="IDAGraph.html#TYPEgraph_viewer">graph_viewer</a> -> string -> bool</code></pre><div class="info">
Display a graph viewer with a given title in IDA.<br>
</div>
</body></html>