How to assign weight to a node in a directed network graph and calculate the effective node weight?

**My Problem:**

I have a set of nodes, with some nodes are connected by directional edges.

I want to assign the weights to each node and each edge.

Finally I would like to calculate effective node weights based on influence of the connected nodes.

**Background:**

Currently I am using JUNG to solve my problem.

I looked at JUNG package edu.uci.ics.jung.algorithms.scoring. But not sure if they would help me achieve my objectives.

Any help would be appreciated.

Thanks,

Ramesh