Thanks but I could not make it work!
I want to put the following inside textbox.
Code:
FindMincut(undirected graph G)
{
while there are more than 2 nodes in G do
{
pick an edge (u,v) at random in G;
contract the edge, while preserving multi-edges;
remove all loops;
}
output the remaining edges;
}
I tried the following...
Code:
\begin{framed}
\begin{verbatim}
FindMincut(undirected graph G)
{
while there are more than 2 nodes in G do
{
pick an edge (u,v) at random in G;
contract the edge, while preserving multi-edges;
remove all loops;
}
output the remaining edges;
}
\end{verbatim}
\end{framed}
I am getting a page wide huge box around the text.
Can I make it smaller and more descent looking?
I want the boxes like this given in the PAGE-4 of the following PDF.
Code:
http://www.cs.dartmouth.edu/~ac/Teach/CS105-Winter05/Handouts/05-mincut.pdf