Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Multi level dependency structure

by VinsWorldcom (Prior)
on Feb 11, 2016 at 18:40 UTC ( [id://1155002]=note: print w/replies, xml ) Need Help??


in reply to Multi level dependency structure

I understand exactly what you're talking about - the CPAN client does something like this when installing modules and dependencies are discovered.

I did something similar when coding a simulation where mobile nodes could talk to each other either directly or by relaying through adjacent nodes if the endpoints were too far way. Essentially, if node1 could talk to node2 but not directly to node3 *AND* node2 could talk to node3, then node1 could in fact talk to node3 (by relaying through node2). If that sounds to you (like it does to me) similar to your problem, have a look at Union/Intersection of Multiple Arrays where JavaFan gave me the idea of "transitive closure" that solved my problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found