in packages/graph-explorer/src/utils/testing/randomData.ts [398:416]
export function createRandomEdgePreferences(): EdgePreferences {
const displayLabel = randomlyUndefined(createRandomName("DisplayLabel"));
const displayNameAttribute = randomlyUndefined(
createRandomName("DisplayNameAttribute")
);
const lineColor = randomlyUndefined(createRandomColor());
const labelColor = randomlyUndefined(createRandomColor());
const labelBorderColor = randomlyUndefined(createRandomColor());
const lineThickness = randomlyUndefined(createRandomInteger(25));
return {
type: createRandomName("EdgeType"),
...(displayLabel && { displayLabel }),
...(displayNameAttribute && { displayNameAttribute }),
...(lineColor && { lineColor }),
...(labelColor && { labelColor }),
...(labelBorderColor && { labelBorderColor }),
...(lineThickness && { lineThickness }),
};
}