-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'd like to see dot output but only if it was simple and human readable.
Currently, I copy/paste my cycle into a file and use a few lines in VI
to convert it into a dot file.
1G
O
digraph {<ESC>
G
o
:%s/\(.*\) => \(.*\)/"\1" -> "\2";/g
There's probably a much more elegant way to do this, but once you shove
this into a .vimrc file, it becomes a non-issue.
This gives me something like the attached.
Thanks, I'm really looking forward to this feature.
Trevor
On 01/24/2011 02:43 AM, Daniel Pittman wrote:
> On Sun, Jan 23, 2011 at 21:48, Luke Kanies <[email protected]> wrote:
>> On Jan 23, 2011, at 5:52 PM, Nigel Kersten wrote:
>>> On Sun, Jan 23, 2011 at 12:39 AM, Daniel Pittman <[email protected]>
>>> wrote:
>>>> From: Daniel Pittman <[email protected]>
>>>>
>>>> This implements Tarjan's algorithm for finding strongly connected
>>>> components
>>>> in a directed graph, and leverages that to find cycles.
>
> [...]
>
>>> No code comment, but I'm very happy to see active work on this. It's
>>> very frustrating to debug these situations.
>>
>> I second this.
>>
>> I'd always planned on producing subgraphs (in dot format) when cycles were
>> encountered, since that's what I've always done for visual debugging, but I
>> never got around to it.
>
> So, in thinking about how to make this maximally useful, I figured
> that the following properties were valuable:
> * it should strongly prefer shorter paths in the cycle when reporting
> * it should limit reported paths to something like ten per cycle
>
> At the moment it only emits textual data. How strongly do y'all feel
> about wiring in something like emitting dot graphs for the cycle only?
> It isn't technically hard to do that, just not actually implemented.
>
> I have kind of cheated and avoided building subgraphs for any of this
> stuff; it might make sense, but seems relatively costly for something
> used only in an error reporting situation. OTOH, if detecting strong
> clusters and building subgraphs from them was useful elsewhere (or
> general subgraph extraction)...
>
> Regards,
> Daniel
- --
Trevor Vaughan
Vice President, Onyx Point, Inc.
email: [email protected]
phone: 410-541-ONYX (6699)
pgp: 0x6C701E94
- -- This account not approved for unencrypted sensitive information --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBAgAGBQJNPVbcAAoJECNCGV1OLcypxDwH/2m6zfhZbcpklsCbVxBRkItP
XtFBBhNiExjnN0hevX7WmFhp5zz5oKXA6eUETAL7Q7hufoqJhkg7gY4JCnTfN1Vf
FtwMkuhVCIoPa8xsIMvHjt7vYdgZ4cK3p0q02M2NfUKqohWj9xSi5oxuEumLSIo9
2qrrk3icTUx+1YXoY7Elp+0qdIhIK9TTxIHQ0dfbynP/emmpUuKdFJz3BAnnpiso
T/otrzdfcNhktfypiV9VDTtnEvrVVOa/Ma7k7g/5BT/D42rRq3M9iRUqKuZhn6bp
1y9U0ADfmVmnmqB2Lb14dH+R8Qsl3K92DAX+g0mCUDFPbWEZcroNwVnP1iIVgCw=
=+tHp
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.
<<attachment: foo.png>>
foo.png.sig
Description: PGP signature
<<attachment: tvaughan.vcf>>
