use edges & value the marginal