Use edges & value the marginal

Use edges & value the marginal